+ 1
What error
Here is my code what is the error https://code.sololearn.com/cq0TvjhR272L/?ref=app
4 Answers
+ 2
Wrong indentation and comparison to variables that aren't defined
a=input("The game says about you that")
if a == "Minecraft":
print("That's a nice game")
elif a == "Pubg":
print("Bad that game banned")
else:
print("This game is not in list")
+ 1
How to fix this error
+ 1
Code work's fine
a=str(input("The game says about you that\n")).capitalize()
if a == 'Minecraft':
print("That's a nice game")
elif a == 'Pubg':
print("Bad that game banned")
else:
print("This game is not in list")
0
Identation is not correct..
And you shloud include string in quotes..
Like this...
a=str(input("The game says about you that"))
if a == "Minecraft":
print("That's a nice game")
elif a == "Pubg":
print("Bad that game banned")
else:
print("This game is not in list")