Step-by-Step Execution:
-
height = 185
-
if not (height == 170):
- height == 170 is False because 185 != 170
- not False → True
- So, print("1") executes.
-
if not (height > 160 and height < 200):
- height > 160 is True
- height < 200 is True
- True and True is True
- not True → False
- So, print("2") does not execute.
Final Output:
0 Comments:
Post a Comment