此打印功能出现语法错误,无法解决原因!
if teacher == "no":
name = input("What is your name?")
class_code = str(input("What class are you from? 1, 2 or 3?")
print("Welcome to the Arithmetic Quiz, ",name)
感谢您的帮助!
答案 0 :(得分:1)
更改此行
class_code = str(input("What class are you from? 1, 2 or 3?")
到
class_code = str(input("What class are you from? 1, 2 or 3?"))