0

What is problem with this code please can anyone correct it

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

15th Apr 2017, 9:52 AM
anuj rathore
3 odpowiedzi
+ 6
There. It will run an EOF error though, as there is an infinite loop there, while Sololearn's Code Playground may take a finite number of inputs at a time. https://code.sololearn.com/c0Y1qOY9lgFc/?ref=app
15th Apr 2017, 10:04 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 11
It is indented... Indenting is very important in Python! Just delete some lines there
15th Apr 2017, 9:59 AM
Gami
Gami - avatar
+ 10
https://code.sololearn.com/cwn1XQ04Z64q/?ref=app In the greetings list you used ' ' double single quotes... Change them to single This is the correct indentation... And please remove while True, as it will return an infinite loop... Also use input() instead of raw_input() as it is deprecated in Python 3.x!
15th Apr 2017, 10:04 AM
Gami
Gami - avatar