I always get a bad input on the line but I'm not sure how to fix it. sorry if it's not formatted correctly.
This is on python 2.6
videoGames = ["Fortnite", "Minecraft", "Roblox", "2048", "Mario Cart"]
favGame = raw_input("What is your favorite video game?")
if favGame == videoGames[1]
print("Hi.")
print("Really?! We both enjoy playing") #add the input that matches with the list
If the user input matches one of the items in the list, then it will print "really?! We both enjoy playing (game)
Aucun commentaire:
Enregistrer un commentaire