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
- The editor starts almost empty. Type one line of your own:
print("Hello, Maya!")
…but use your own name, not Maya.
- 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 thinkHellois a variable name. - Python is case-sensitive:
Printis not the same asprint. - The output should look like
Hello, [your name]!— comma after Hello, space, your name, exclamation mark.