0

break in Python

Hi there. Every time I try to write this code on IDLE, I face an Error for the last line saying: File "<stdin>", line 8 print ("Finished") SyntaxError: invalid syntax While on SoloLearn code playground this runs without any problem. https://code.sololearn.com/cJg3hbVxfEZG/?ref=app

13th Jul 2020, 9:30 AM
Asymptote
Asymptote - avatar
6 Answers
+ 1
You seem to have a space between print and the first parenthesis ( ?
13th Jul 2020, 9:45 AM
Ahmad Shahzad
Ahmad Shahzad - avatar
0
Ahmad Shahzad Yes, I do. But I had a space between print and ( in the 6th line too, this error didn't occur there though.
13th Jul 2020, 9:48 AM
Asymptote
Asymptote - avatar
0
Rithea Sreng Maybe I'm doing a mistake in typing. Thanks.
13th Jul 2020, 2:24 PM
Asymptote
Asymptote - avatar