Execute Python scripts in the terminal or an IDE. Python
files have the .py extension. Whenever you
make a Python script, save it as name.py
A
simple program (hello.py) is shown below. The first line
indicates that we want to use the Python interpreter. The
3rd line outputs a line of text גhello wlrdג to the screen.
The text below can be copied into a text editor and save
as hello.py. Python works with files that
end in .py .
1
2
3
#!/usr/bin/env python3
print('hello world')
You can use any text editor to create a Python program. I
recommend using a text editor that supports syntax
highlighting (text colouring) and line numbers.