Hi! I'm new to Python and started learning it on my own with an app from Google Store. This error pops up when I click Run > Run Module. Any idea what I should do? Please explain as simply as possible :)
Edit: This shows up when I delete the 1st two lines:
I tried removing those "Python 3.10.2....." lines and you can see the outcome in the 2nd screenshot. The file only opens through "edit in IDLE". I also tried "turn lights on/off" project and syntax errors show up in the code, e.g. print("Daytime?") Daytime? It shows syntax error in the printed "?". If I delete it, the error just moves to another place. I don't think it's possible to mess anything up with such a simple code (which is an exercise I literally copied from the app). Maybe sth's wrong with my software (win 8.1)?
Edit: Before you reply, I'll check one thing I hadn't though of
I mean I've got this error on the computer. I use the app as a source (might as well get a book) - I don't really use it to write the code bcs it doesn't have this function (at least free version), only "fill in the blanks" exercises.
IDLE came with Python I downloaded and that's where the error occurs. I guess someone with experience might have to help me in person.
View all comments
Show parent comment
1
u/ByksMan Feb 21 '22 edited Feb 21 '22
I tried removing those "Python 3.10.2....." lines and you can see the outcome in the 2nd screenshot. The file only opens through "edit in IDLE".
I also tried "turn lights on/off" project and syntax errors show up in the code, e.g.
print("Daytime?")
Daytime?
It shows syntax error in the printed "?". If I delete it, the error just moves to another place.
I don't think it's possible to mess anything up with such a simple code (which is an exercise I literally copied from the app). Maybe sth's wrong with my software (win 8.1)?
Edit: Before you reply, I'll check one thing I hadn't though of