我正在做一个任务,我必须执行测验,到目前为止,这是我的代码。为什么我的Python语句给我一个错误?
print("Hello and welcome to Shahaad's quiz!") #Introduction
name = input("What is your name? ")
print("Alright", name,", these will be today's topics:")
print("a) Video Games")
print("b) Soccer")
print("c) Geography")
choice = input("Which topic would you like to begin with?")
if choice == 'video games'
print("Lets start with Video Games!")
我试图使它的是,如果人选择电脑游戏作为他们的第一个话题,它打印出的最后一行,但我不断收到错误,而且如果选择==“视频游戏”。
Python块应该用':'表示,从你的if语句中遗漏。 '如果选择=='电子游戏':' –