Python Lesson 2.1 — Hello, Vibe!

LessonsPython → Lesson 2.1
Python

Hello, Vibe!

“Your computer talks back to you. Friendly. Welcoming. Alive.”

⏱ About 10 minutes 🛠 Python + IDLE ⭐ Lesson 1 of 3

What you will have

A Python program that asks your name and how you’re feeling — then prints a personalised encouraging message back to you.

It runs in a black console window. You type, it responds. Simple, alive, and completely yours.


Before you start — get Python

You need Python installed on your computer.

Go to python.org and download the latest version. Run the installer — make sure you tick “Add Python to PATH” before clicking Install. IDLE comes included automatically.

Once installed, search for IDLE in your Start menu and open it.


Video walkthrough

Prefer to watch? Follow along with the full video.

Watch Greg build the greeting program live — copying the prompt, pasting into ChatGPT, running it in IDLE, and making the Vibe Tweak. Pause and rewind as many times as you need.

Enjoying the videos? Subscribe on YouTube for every new lesson →


Your prompt

Copy this. Paste it into your AI. Hit Enter.

📋 Your Prompt — Copy Everything Below
Write a simple Python program that greets the user by name. Ask “What is your name?” then “How are you feeling today?” then print a personalised, encouraging message about vibe coding. Use input() and print(). Keep it friendly and fun.
✅ Copied! Now paste it into your AI.

What to do after

Follow these steps exactly.

1
Copy all the code the AI gives you
Select all of the code and copy it.
2
Open IDLE → File → New File
A blank editor window will open.
3
Paste and save as greeting.py
Ctrl+V to paste. File → Save As → name it greeting.py.
4
Press F5 to run
Type your name when it asks and hit Enter.

🛠️ Didn’t work?

Don’t panic. Here’s exactly what to do:

1 Copy the error message from the IDLE window
2 Go back to your AI chat
3 Say: “This didn’t work. Here’s the error: [paste it]. Please fix it.”

The AI will fix it every time.


Vibe Tweak

Make the message your own.

Open greeting.py in IDLE. Find the encouraging message the AI wrote. Change it to something you would actually say to a beginner. Save and press F5 again.

You just wrote your first line of code. That message is yours.


Extra Credit

Want to go further?

📋 Extra Credit Prompt
Add a random compliment to the greeting program. Each time it runs, print a different compliment chosen randomly from a list of 5. Use the random module.
✅ Copied!

Reflection

Before you move on — think about this.

“Was it strange not having to type the print statements yourself? Look at the code — can you find where it stores your name after you type it?”

Up next
Python Lesson 2.2 — Number Guessing Game
The computer picks a number. You guess. Too high or too low — can you win?
Next Lesson →
Greg the Vibe Coder · gregthevibecoder.com 18 lessons · No account required