...

/

Say “Hello!”

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 get their hands dirty with real code from the very start. Whether you’re curious about coding or aiming for a career in tech, Python is a great place to begin.

Computers don’t speak English naturally, but luckily, they’re fluent in Python—and they 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. For a better understanding, you can always take the AI mentor’s help!

Press + to interact
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
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.”

Simple and effective!


Mini challenge: Favorite quote

Let’s take it a step further! Write a Python print statement that prints one of your favorite quotes. The quote can be from a movie, a book, or perhaps even your own.

Let’s look at the following example:

Press + to interact
# Print your favorite quote here.

Fantastic! You can now print your customized messages.


Quick recap

In this lesson, we learned:

  • How to use the print() function to display messages.

  • How to customize text inside the function.

You’ve already got the basics down—you’re officially coding in Python!


What’s next?

Next, we’ll turn Python into your personal calculator—helping you do math quickly, accurately, and effortlessly.
Let’s keep going!