+ 1

What error

Here is my code what is the error https://code.sololearn.com/cq0TvjhR272L/?ref=app

8th Sep 2020, 8:29 AM
Gamer Stream
Gamer Stream - avatar
4 ответов
+ 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")
8th Sep 2020, 8:32 AM
Abhay
Abhay - avatar
+ 1
How to fix this error
8th Sep 2020, 8:35 AM
Gamer Stream
Gamer Stream - avatar
+ 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")
8th Sep 2020, 11:32 AM
Vinay Govardhanam
Vinay Govardhanam - avatar
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")
8th Sep 2020, 9:49 AM
Jayakrishna 🇮🇳