How to run code in for Python – what's the best way to execute scripts? or Struggling with how to run

22 Replies, 1540 Views

Honestly? Use Jupyter Notebooks if you're learning.

For how to run code in for python, it lets you run chunks of code at a time. Great for testing bits without running the whole script.

Install Anaconda—it comes with Jupyter and Python pre-setup.
If you're on Mac/Linux, open Terminal and type `python3 filename.py`.

For how to run code in for python, make sure you’re in the right folder (use `cd` to navigate).

VS Code is better long-term, but IDLE works for quick tests.



Users browsing this thread: 1 Guest(s)