What is wrong with this code? def my_func(var):     if var = "the sky":         print("wow.")     elif var = "the ocean":         print("wow.")     else:         print("what?")单项选择题

A

Syntax error: incorrect use of print statement

B

Incorrect test for equality

C

Indentation error

D

Missing variable declaration

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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