Hello, World!

Write and run your first program.

python·~10 minutes·Lesson 1 of 12
Run a programUse the print() function to show textUnderstand that strings go between quotes

Every programmer's journey starts here. You're going to write a program that prints a greeting — with your own name in it.

What you'll learn

  • How to use print() to display text
  • How strings work in Python (text inside quotes)
  • How to run a program

Instructions

  1. The editor starts almost empty. Type one line of your own:
print("Hello, Maya!")

…but use your own name, not Maya.

  1. Click Run. You should see your greeting in the output panel.

Key concepts

  • print(...) shows whatever's inside the parentheses on the screen.
  • Strings are pieces of text wrapped in quotes: "Hello", 'World', "anything in here".
  • The quotes themselves don't appear in the output — they just tell the computer where the text starts and ends.

You can use either single quotes '...' or double quotes "..." — both work the same way.

Hints

  • Keep the quotes around your message. print(Hello) (no quotes) won't work — Python will think Hello is a variable name.
  • Python is case-sensitive: Print is not the same as print.
  • The output should look like Hello, [your name]! — comma after Hello, space, your name, exclamation mark.