...

/

Say “Hello!”

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!

Python
print("Hello World")
  • Click Run.

  • You should see Hello World in the console.


Step 2 — Make it yours

Change the message so it’s not the default. Use straight quotes " " around text.

Python
# personalize this line by changing the text between double quotes
print("Hello from Ada!")

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 screen

  • Text goes inside quotes when the function is called: print("Hello")

  • Numbers don’t need quotes: print(42)


Quick checkpoint (10 seconds)

Quiz on print

1.

Which line prints the number forty-two as a number, not as text?

A.

print(“42”)

B.

print(“fourty-two”)

C.

print(42)


1 / 1

You did it

You ran and customized your first Python program.
Next: Let's put your skill to practice.