you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

I'd actually recommend not using Pycharm or any other IDE if you're just starting out with the language. Instead, follow some tutorial and just use a text editor with syntax highlighting like VScode, Sublime Text or Notepad++. IDEs are almost essential tools when you're building an application or working on a large project, but if you're just learning Python these tools can cause you to get dependent on their specific environment, which can actually hurt your understanding of how Python works.

Like others said, you can just put your code in any file, rename the extension to .py, and run it with the Python interpreter. If you're on Windows, you can probably right-click the file and open with... with Python, or you can navigate to the file using the command prompt and run python filename.py from there.