My script isn't working and I followed it word for word | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

My script isn't working and I followed it word for word

I'm using Python 3.5 (32-bit) and I keep getting the error; File "<stdin>", line 5 print("Finished!") ^ SyntaxError: invalid syntax

4th Sep 2016, 4:59 AM
John AZ1
John AZ1 - avatar
2 Answers
+ 1
Could you paste whole code? Sometimes the error is just before market place. So in yor case it shows on print but just before print you should had for loop ending with colon ":"
4th Sep 2016, 5:57 AM
Lukasz Sikora
Lukasz Sikora - avatar
0
just give it a tab space before print ...it happens only in loops...
4th Sep 2016, 6:30 AM
kaka