Skip to content
Learnearn.uk » Python Unit Home » Running a Python program through BASH

Running a Python program through BASH

No black button? Don’t panic! Here is how to run your program:

pa-breadcrumb

click on Bash

pa-bash

type Python filename.py and press Enter

pa-ch1

Your program should now run happily 🙂

P.s. If you have used a filename with spaces in it::

[python]

python "im a file name with spaces.py"

[/python]