The next logical step after the last post is to created a python “Hello World” app on my Raspberry Pi.
Lets try Chat GPT this time, you have probably already figured out the Claude excels at these tasks.
We are going to reuse the same prompt as last time with a couple of changes:
Create a step by step guide, writing a “Hello World” program in Python, use IDLE, on my Raspberry Pi, assume the reader has zero knowledge of Python and or this project. I want to remote in via the built in VNC feature on the Rasberrian OS
One of the things you notice first is that the results do not come in that nifty right sidebar with a complete code download button out of the box.
I did ask for a nicer version.
๐ Raspberry Pi Python โHello Worldโ Guide
Using VNC + IDLE (Beginner Friendly)
๐ฏ Goal
By the end of this guide, you will:
- Connect to your Raspberry Pi remotely
- Open Pythonโs editor (IDLE)
- Write your first program
- Run it and see:
Hello, World!
๐งฐ What You Need
- Raspberry Pi with Raspberry Pi OS
- VNC enabled on the Pi
- Another computer with VNC Viewer installed
- IDLE available in the Raspberry Pi menu
๐ Step 1: Connect to Your Raspberry Pi (VNC)
- Open VNC Viewer on your computer
- Enter your Piโs IP address
- Click Connect
- Log in with your Pi username and password
โ You should now see your Raspberry Pi desktop
๐ฅ๏ธ Step 2: Open Python (IDLE)
- Click the Raspberry Pi menu (top-left corner)
- Go to Programming
- Click IDLE or Python 3 (IDLE)
๐ก A window called Python Shell will open โ this is normal
๐ Step 3: Create a New Python File
- In the Python Shell window, click File
- Click New File
๐ช A blank editor window will appear
โ๏ธ Step 4: Write Your First Program
Type this exactly:
print("Hello, World!")
โ ๏ธ Be careful with:
- Parentheses
( ) - Quotation marks
" " - Spelling of
print
๐พ Step 5: Save Your File
- Click File โ Save
- Choose a location (Desktop is fine)
- Name the file:
hello.py
- Click Save
โถ๏ธ Step 6: Run the Program
- Click Run โ Run Module
(or press F5)
๐ Step 7: See the Result
Look at the Python Shell window.
You should see:
Hello, World!
โ Success! Your first program worked.
๐ง What Did You Just Do?
print("Hello, World!")
printโ tells Python to display something"Hello, World!"โ the message
๐ Together: show this message on the screen
๐งช Try This Next
Change your message:
print("Hello from my Raspberry Pi!")
Save and run again.
โ ๏ธ Common Mistakes
โ Missing quotes
print(Hello, World!)
โ Correct
print("Hello, World!")
โ Misspelling print
prit("Hello")
โ Correct
print("Hello")
โ Forgot to save before running
โ Always save before pressing F5
๐ ๏ธ Troubleshooting (If IDLE Is Missing)
1. Check Python
Open Terminal:
python3 --version
If you see a version โ Python is installed โ
2. Try launching IDLE manually
idle
or
idle3
3. If IDLE is not installed
sudo apt updatesudo apt install idle -y
Then try again:
idle
4. If it still doesnโt appear in the menu
sudo reboot
โก Quick Version (Cheat Sheet)
- Open VNC Viewer โ connect to Pi
- Menu โ Programming โ IDLE
- File โ New File
- Type:
print("Hello, World!")
- Save as
hello.py - Press F5
- Look for:
Hello, World!
๐ Whatโs Next?
Try:
name = "Your Name"print("Hello, " + name)
๐ก Youโve just written your first Python program โ nice work.

Success! We now have a hello world program written in Python on a Raspberry Pi!