what is the output of the following snippet? x, y, z = 5,10,8 print (x>z) print((y-5) ==x)
Answers
Answered by
36
Answer:-
Output:-
False
True
Explainaction:-
5>8 condition false so it will print "False"
Now, (y-5)==x
y-5= 10-5=5
Now, 5==5, condition true, it will print "True" in the next line.
Answered by
16
Corrected Snippets:
- x,y,z=5,10,8
- print(x>z)
- print((y−5)==x)
Output:
False
True
Explanation:
5>8
If condition is false
Then it will print "False"
Now:
(y-5)==x
y-5= 10-5=5
Now:
5==5,
If condition is true
It will print "True" in the next line
Similar questions
English,
1 month ago
English,
1 month ago
Math,
2 months ago
Psychology,
2 months ago
CBSE BOARD X,
9 months ago
Math,
9 months ago