How to Run Your Python Scripts

Running Python Scripts

Darren Jones

Darren Jones 7 Lessons 18m
basics python

One of the most important skills you need to build as a Python developer is to be able to run Python scripts and code. This is going to be the only way for you to know if your code works as you planned. It’s even the only way of knowing if your code works at all!

This step-by-step course will guide you through a series of ways to run Python scripts, depending on your environment, platform, needs, and skills as a programmer.

You’ll learn how to run Python scripts by using:

  • The operating system command-line or terminal
  • The Python interactive mode
  • The IDE or text editor you like best
  • The file manager of your system, by double-clicking on the icon of your script

About Darren Jones

Darren Jones

With 20 years as a teacher of music technology, Darren is keen to bring his skills to the Python table.

» More about Darren

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

johncyyoung on April 10, 2019

Thanks, enjoyed that, informative for beginner(me!) :)

Michael deVry on July 30, 2019

Thanks Darren. Clear and concise. Cheers!

DiscreteLoner on Aug. 6, 2019

Easy to follow and good for people that use difference operating systems.

« Browse All Courses