What went wrong with this code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What went wrong with this code?

first = input("What is your name? ") favorite_color = ("What is your favorite color? ") print(first + "likes" + favorite_color )

23rd Nov 2020, 12:52 PM
Jurence
Jurence - avatar
2 Respostas
+ 2
2nd one has missing input() function... first = input("What is your name? ") favorite_color = input("What is your favorite color?\n") print(first + " likes " + favorite_color )
23rd Nov 2020, 12:53 PM
Jayakrishna šŸ‡®šŸ‡³
0
Ohh yeah..thanks alot
23rd Nov 2020, 12:56 PM
Jurence
Jurence - avatar