about if statement | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

about if statement

what is the ans if i write if num ==7: print("7") this after if num > 3: print("3")

21st Jun 2018, 3:26 PM
Pavan Pralhad Deshpande
Pavan Pralhad Deshpande - avatar
3 Antworten
+ 7
You have code playground for it.You will remember more by doing it practically.
21st Jun 2018, 3:59 PM
Mitali
Mitali - avatar
+ 2
use elif in the place of 2nd if.
21st Jun 2018, 3:58 PM
Maninder $ingh
Maninder $ingh - avatar
0
Do it and you will see.
21st Jun 2018, 3:28 PM
Lstiti