AQ1.6: Activity Questions 6 - Not Graded

28 views
Skip to first unread message

soniya duge

unread,
Nov 19, 2020, 1:58:04 PM11/19/20
to Discussion forum for Mathematics for Data Science I
can some one explain me why my answer is wrong for Q2. in 
AQ1.6: Activity Questions 6 - Not Graded
1.PNG

jatin madaan

unread,
Nov 19, 2020, 2:20:57 PM11/19/20
to Discussion forum for Mathematics for Data Science I, soniy...@gmail.com
Hi , 

According to programing and means code would check for 1st value ie value on left hand of and clause if it is not matching it will not check 2nd value ie value post and . So if you choose option 2 and test for value 5 then it will never be true . 

so in this case of union we use or condition . 

Thanks
Jatin Madaan

soniya duge

unread,
Nov 19, 2020, 2:45:37 PM11/19/20
to Discussion forum for Mathematics for Data Science I, jatin madaan, soniya duge
Got it. Thanks!! 
Reply all
Reply to author
Forward
0 new messages