I was making python logo animation i output it but it said βFile "file0.py", line 1 @@ -0,0 +1,103 @@ ^ SyntaxError: invalid syntaxβ https://code.sololearn.com/cYcwhZDxByHU/?ref=app
5/24/2022 11:38:51 AM
π«ππ’πΊπΊπ’π―π«10 Answers
New Answerπ«ππ’πΊπΊπ’π―π« You cannot work with turtle module in python. You need it in web. https://code.sololearn.com/Wkzke3hvt8X5/?ref=app https://code.sololearn.com/W6cmk391WqiN/?ref=app
Read the error message: What does it say? It says SyntaxError in line 1. That means you need to fix line 1. Apart from that, check the indentation.
π«ππ’πΊπΊπ’π―π« invalid syntax is from the first line. Remove it or comment it out with # or include it in your docstring """ @@ -0,0 +1,103 @@ Developed by Chetan Rathod """ Look at your code. Every line has a single space in front. Remove those, too. Also, your code would not run in Sololearn's playground. You need a proper console for turtle.
Because, as the error message says, it is INVALID SYNTAX. I told you how to fix it, read my reply carefully. Now show some effort and try to fix it yourself.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message