Why doesn't this code run | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why doesn't this code run

colour = input((colour)) if colour == "yellow": print ("wow! what a wonderful choice") else: print ("you have a good choice though") name = input((name)) print("nice to meet you", name )

11th Dec 2020, 4:16 PM
David Abiiba
David Abiiba - avatar
3 Réponses
+ 1
David Abiiba because there is only input()
11th Dec 2020, 4:19 PM
A͢J
A͢J - avatar
+ 1
Hi David Abiiba, I think what you want to do is: colour = input("input a color: ") # ...
11th Dec 2020, 5:38 PM
Lisa
Lisa - avatar
0
Okay thanks for the reply
11th Dec 2020, 4:22 PM
David Abiiba
David Abiiba - avatar