Say “Hello!”
Learn how to run your first line of code and see instant feedback.
We'll cover the following...
Welcome to Learn Python! This course is built for beginners who want to practice with real code from the very start. By the end of this brief lesson, you’ll have:
✅ run your first program
✅ personalized it
✅ passed a 10-second checkpoint
Step 1 — Run your first Python program
You can press the 'Run' button to see the output of the code, but you also have an option to invoke your personal AI Mentor!
Click Run.
You should see
Hello Worldin the console.
Step 2 — Make it yours
Change the message so it’s not the default. Use straight quotes " " around text.
Try ideas:
your name:
print("Hello, Sam!")something funny:
print("Beep boop 🤖")a quote:
print("Talk is cheap. Show me the code.")
Need the original back? Use:
print("Hello World")
Concept at a glance
print()is a built-in Python function that can be used to display a text or a number on the screenText goes inside quotes when the function is called:
print("Hello")Numbers don’t need quotes:
print(42)
Quick checkpoint (10 seconds)
Quiz on print
Which line prints the number forty-two as a number, not as text?
print(“42”)
print(“fourty-two”)
print(42)
You did it
You ran and customized your first Python program.
Next: Let's put your skill to practice.