Say “Hello!”

Learn how to run your first line of code and see instant feedback.

Welcome to Learn Python! This course is built for beginners who want to practice with real code from the very start. Whether you’re curious about coding or aiming for a tech career, Python is a great place to begin.

Computers don’t speak English naturally, but luckily, they’re fluent in Python and respond instantly when you speak their language!

Imagine you’re teaching your computer to say “Hello.” It’s simple, fun, and your first step toward mastering Python.


Our first Python conversation

Let’s start by printing a message to the screen. You can always take the AI mentor’s help for a better understanding!

Press + to interact
Python
print("Hello World")
  • Action: Click the “Run” button above to see what happens.

  • Instant output: Hello World

Congratulations! That’s our first working program—the computer just responded!


Your turn: Customize your greeting

Press + to interact

Now, let’s personalize your greeting. Try changing the text inside the quotes ("Hello World") to something meaningful to you.
Maybe:

  • Your name

  • A favorite quote

  • Something funny!


Let’s look at the following example:

Press + to interact
Python
print("I'm excited to learn Python!")

Go ahead, edit it now, then click the “Run” button again.

Awesome job! You’ve just customized your first Python program. Feels good, right?


Quick breakdown: What’s going on?

You just used Python’s print() function:

  • print() is how Python shows you messages on the screen.

  • To make Python display text, put it in quotes ("Like this!"). Numbers don’t need quotes—just write: 42. If you put quotes around a number, like "42", Python treats it as text.

  • Quotes tell Python, “Hey, treat this as text.”

Now, test your understanding with a quick quiz in the next lesson.