Write a Simple Program in Python
Tradition dictates that Hello World! be the first program that you write when you’re learning a new programming language like Python. You’re following in the footsteps of many great programmers when you create this project.
To create your Hello World! program, follow these steps:
Open your Start menu and choose Python (command line).
You should get a prompt that looks like >>>.
At the moment, you’re doing everything in interactive mode in the Python interpreter. That’s where the >>> comes in. Python shows you >>> when you’re supposed to type something.
At the prompt, type the following. Use a single quote at the start and the end — it’s beside the Enter key:
Press the Enter key.
Python runs the code you typed.
You see the output shown in Figure 1. Congratulations — you’ve written your first program. Welcome to the Python-programmers-in-training club.