0

Sentence if

In the question of num = 7, the answer is print ("3"), but it can also be (if num == 7Print ("7")), or you can not by the echo that also applies the string quotation marks?

14th Apr 2017, 7:13 PM
Jose Ricardo
Jose Ricardo - avatar
3 Respostas
+ 1
i dont know what you r looking for but heres something: num=7 if num==7: print(7) elif num==3: print(3) elif num ==5: print(5) else: print('i donk know') prints 7
14th Apr 2017, 7:50 PM
Nihad TK
Nihad TK - avatar
0
I should link to one of the countless questions that are exactly the same... It can't be 7 because that if statement is NEVER executed.
14th Apr 2017, 7:47 PM
Amaras A
Amaras A - avatar
- 1
Could you ask your question in other words, please? I don't get your problem. :(
14th Apr 2017, 7:26 PM
merkrafter