在线名词解释大全 - Python程序设计 - 详细

10 Analyzethefollowingcode:()even = Falseif even = True:print("Itiseven!")

A
The program has a syntax error in line 1 (even = False)
B
The program has a syntax error in line 2 if even = True is not a correct condition. It should be replaced by if even == True: or if even:.
C
The program runs, but displays nothing.
D
The program runs and displays It is even!.
正确答案:
相关推荐
扫描二维码
关注公众平台