0

Python code pblm

Why the value of this code is only 3? Why not 3 and 7? num=7 if num>3: print("3") if num<5: print("5") if num==7: print("7")

19th May 2020, 3:25 AM
MUHAMMAD SHAHJALAL
MUHAMMAD SHAHJALAL - avatar
2 odpowiedzi
+ 2
This is because "if num==7" is a statment of "if num<5"
19th May 2020, 3:39 AM
4lx
4lx - avatar
0
Thank you
19th May 2020, 4:06 AM
MUHAMMAD SHAHJALAL
MUHAMMAD SHAHJALAL - avatar