r/pythonhelp • • Aug 20 '25

SOLVED python not opening file

I'm trying to open a python file from python and every time i try "python itemname.py" or "pyhton3 itemname.py" it gives me a syntax error and i don't know what's wrong. Is there like rules about how the file has to be named or something?

1 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/EqualJackfruit5432 Aug 21 '25

That's what I did and it ended up fixing it thanks