0
Why this answer
Num=7 If num >3: Print(â3â) If num<5: Print (â5â) If num==7: Print (â7â) Why would the output of this be 3 instead of 7? Is it because it is also true and higher in the chain of if statements?
1 Answer
+ 2
because it jumps out of the nesting of the if statements the moment it hits true. and because your num is bigger than 3 it simply says, okay, and prints â3â