You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
Assignment 3 qn 3...is there 6 integers in it??
square root 49,7,-35,22,1729,-20000
Ansh Bhardwaj
unread,
Oct 5, 2020, 6:02:04 AM10/5/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I, elia...@gmail.com
Please refrain from asking duplicate doubts. First go through the forum and if you don’t find a doubt similar to yours then only you should ask questions. If you see carefully, then 7 is already in the list of integers which is square root of 49 hence the answer will be 5 and not 6
Message has been deleted
Message has been deleted
Christopher Raphael
unread,
Oct 6, 2020, 3:25:35 AM10/6/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
The unmodified list will have "6 counts" of "integer", since the question asks one to count the number of integers in the list. (did not ask for unique integers' count)
Christopher Raphael
unread,
Oct 6, 2020, 4:14:33 AM10/6/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
let listOfReals = [ √3, 2.5, e, √49, 7, 22, pi, -35, √6, 1729, -20000 ]; let numberOfElementsInList = listOfReals.length; //=>length of the array = 11 let integerCount=0;