Can anyone please help me correct this code and clearly state what is wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone please help me correct this code and clearly state what is wrong?

https://code.sololearn.com/c4F8aZ0FnB5G/?ref=app

12th Sep 2017, 7:27 PM
Rachael Nantale
Rachael Nantale - avatar
6 Answers
+ 12
https://code.sololearn.com/ct8wju6bOQ1j/?ref=app
12th Sep 2017, 7:42 PM
༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つ - avatar
+ 2
As HelloWorld fixed your code, notice a few things : 1. Indenting is critical in python. This is the price you pay for not having to use ; after every statement. 2. Sololearn is using python 3, not python 2, therefore "print" is a function, not a statement, and as such, must be called with parenthesis : print(). The way you wrote your print statements is compatible with python 2,not python 3. BTW, most of the world still runs python 2 :-(
12th Sep 2017, 8:01 PM
Udi Finkelstein
Udi Finkelstein - avatar
+ 2
I think that function names can't start on capital letters
27th Apr 2019, 8:46 PM
Amanuel HaileGiyorgis
Amanuel HaileGiyorgis - avatar
+ 1
are u back?
2nd Jul 2018, 9:44 AM
Derick
Derick - avatar
0
thank you so much guys
12th Sep 2017, 9:15 PM
Rachael Nantale
Rachael Nantale - avatar
0
"Nothing is better than a girl/woman who writes code" So keep coding. Am sorry am yet to start learning Python.
25th Sep 2017, 5:11 PM
Ayiko Fred
Ayiko Fred - avatar