Type the text below into a text editor and save as hello.py. Python files usually have the .py extension.
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.
Related course: Complete Python Bootcamp: Go from zero to hero in Python
To start the program, we have to open the command line and type:
You should see a line of text showing “hello world”.
Try the exercises below:
- Make a Python program that prints your name.
- Make a program that displays the lyrics of a song.
After completing these continue with the next exercise.