Which of the following statements is NOT true for the following Python code: if x < 0: y = -1 if x >= 2: y = 2单项选择题

题目图片
A

a. y = 2 is executed only if the condition x<0 is false and the condition x>=2 is true.

B

b. y = -1 is executed only if the condition x<0 is true.

C

c. y is not defined when both conditions are false, that is, when 0 <= x < 2.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!