Question 10
What is the output of the following code?
Solution
Given x = 30,
x < 100isTrue, enter if block.x > 50isFalse, skip to subsequent elif block.x > 10is True, enter elif block.- Print out
'B'.
What is the output of the following code?
Given x = 30,
x < 100 is True, enter if block.x > 50 is False, skip to subsequent elif block.x > 10 is True, enter elif block.'B'.