Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![markspenser](https://secure.gravatar.com/avatar/01c5cd3f30f9100dc287de736ba90f43?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
markspenser
Courses Plus Student 256 PointsPython workspace didn't work to run a file.
I was going to run a saved file with: python notes.py
But terminal said: SyntaxError: invalid syntax
Please help
6 Answers
![Michael Joyce](https://secure.gravatar.com/avatar/7ff6967b079597f5bf7b846b746e5bc5?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Michael Joyce
6,214 PointsYou might be in a python shell while trying to execute this. Try exit() then attempt python notes.py again (assuming you are using OSX).
![markspenser](https://secure.gravatar.com/avatar/01c5cd3f30f9100dc287de736ba90f43?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
markspenser
Courses Plus Student 256 PointsI'm using Mozilla Firefox, Windows7 32 bit
![Michael Joyce](https://secure.gravatar.com/avatar/7ff6967b079597f5bf7b846b746e5bc5?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Michael Joyce
6,214 PointsSorry I thought you were performing this locally on your machine. I think you can still try exit() in workspaces.
![markspenser](https://secure.gravatar.com/avatar/01c5cd3f30f9100dc287de736ba90f43?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
markspenser
Courses Plus Student 256 PointsI did. No help
![markspenser](https://secure.gravatar.com/avatar/01c5cd3f30f9100dc287de736ba90f43?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
markspenser
Courses Plus Student 256 PointsI have to use python IDLE still. Any ideas for solution please ?
![Kenneth Love](https://uploads.teamtreehouse.com/production/profile-photos/710512/micro_TeacherShoot-Kenneth.jpg)
Kenneth Love
Treehouse Guest TeacherWhen it says SyntaxError
, does it give a line number or snippet of code that holds the syntax error? If so, can you share it with us?
![markspenser](https://secure.gravatar.com/avatar/01c5cd3f30f9100dc287de736ba90f43?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
markspenser
Courses Plus Student 256 PointsThere is no code snippet. Just that what I wrote
![Kenneth Love](https://uploads.teamtreehouse.com/production/profile-photos/710512/micro_TeacherShoot-Kenneth.jpg)
Kenneth Love
Treehouse Guest TeacherSo that makes me think you did python notes.py
while you were still in a Python shell. Try running exit()
first (you should see the >>>
disappear) and then run your script.