0
x = 10 y = 20 x > y print("if statement") print("else statement")
what is the answer and why
4 odpowiedzi
0
It'll print "else statement" because x is less than y
0
In speech:
if you have money more than 10 euros, then you can buy a new mouse.
Otherwise you can not buy a new mouse.
In program:
if money > 10: print("You can buy a new mouse.")
else: print("You can not buy a new mouse.")
0
it print else statement because 10 is less than 20
0