Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7
Also there is no `#` sign in output print(1) print(2) print(3)
27th Jun 2021, 5:24 AM
Simba
Simba - avatar
+ 3
#check the correct identiation: color = input() if color == "red": print("#1") else: if color == "green": print("#2") else: if color == "black": print("#3") #Strings must be in quotes #and after each if there must be the sign :
27th Jun 2021, 5:02 AM
Cmurio
Cmurio - avatar
+ 2
Dev Patel , since there are so many issues in the code you presented, i would recommend you to work through the python tutorial again. you should get more familiar with the basics of python, before you continue in learning new things. happy coding and good success!
27th Jun 2021, 7:25 PM
Lothar
Lothar - avatar
+ 1
Dev Patel If question is wrong then why this is here? Delete this and make new question.
27th Jun 2021, 6:10 AM
A͢J
A͢J - avatar