+ 1

i dont understand that

if not 1 + 1 == y or x == 4 and 7 == 8: are that true or false and why

26th Dec 2017, 10:11 AM
Bahaa Bauomy
Bahaa Bauomy - avatar
4 odpowiedzi
- 2
What are the values of x and y?
26th Dec 2017, 10:15 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
x=4 and y=2 but thx bro i understand it :)
26th Dec 2017, 10:17 AM
Bahaa Bauomy
Bahaa Bauomy - avatar
+ 1
What is 'y' and 'x' ? if y is greater than 2 or less than 2, its gonna return true because 1+1 is not equal to 2. and the expression after 'or' is going to always return false. Because 7 is not 8. I mean if first expression is true, it s going to return true if not, it s going to return false
26th Dec 2017, 10:17 AM
Mustafa K.
Mustafa K. - avatar
+ 1
because the last statement is (and) and it is false, the overall statement is false. it means the statement is independent from y, x
26th Dec 2017, 11:31 AM
Sagheb
Sagheb - avatar