First Line of Code¶
- Open IDLE
, which it’s an simple IDE (integrated development environment) for beginners. - After open IDLE, you will see a white window which is Python Shell (it will show our program’s out put later on). Click on File -> New File
or Ctrl+N to open another window which we can write code in. - In the new window, type
print("Hello World!"), it should shown like this:
- Click Run -> Run Module
or F5 to run your code. If it’s the first time you run, it will promote you to save it first. - After running your program, you should see something like this in Python Shell:

- Congratulations! Your now know the work flow of creating a Python program and how to run it!
Or...¶
Some code in this handout have a Run button under it, you can directly run it and edit it without leaving the page. Here’s an example:
Last update:
March 24, 2021
Created: March 24, 2021
Created: March 24, 2021