我没有从代码中获得正确的输出

时间:2019-08-29 16:48:31

标签: python-3.x

当我给出输入提示而不是打印提示时,它没有给我输出提示是什么问题

import random
country_name = ['Oman' , 'Sierra Leone' , 'Cuba' , 'Iceland']
hints_commn = ['it is a country name']
hints = ["Muscat clock tower is situated here" , "The people of this 
country are the greatest ship makers" , "The loma mountains are situated 
in this country" , "Its name means lion mountains" , "Its national game is the game of dominoes" , "The latin America medical school is situated in 
this country" , "It is also known as the land of fire and ice" , "There is no MCdonalds in this country"]
secret_country = 'Oman'
print("if you are unfamiliar with the rules of the game type or want to 
know the list of commands type help")
first_input = input("Type a command: ")
if first_input == 'hint' and secret_country == country_name[0]:
    one = hints[0 : 2]
    hints_in_game = hints_commn.extend(one)
    print(hints_in_game)

0 个答案:

没有答案