Python Hello World
💡
Exercise 2

Hello World 10 XP Easy

Ctrl+Enter Run Ctrl+S Save

Your first real Python program! 🎉

The print() function tells Python to display something on the screen. It's like a megaphone 📢 — whatever you put inside the parentheses, Python will shout it out!

print('Hello, World!') # Output: Hello, World!

💡 Key Rules:

  • Always use parentheses: print() not print
  • Put text inside quotes: single 'hello' or double "hello"
  • You can print numbers without quotes: print(42)
  • You can print multiple things: print('I am', 10, 'years old')

Fun fact: Almost every programmer in history started with "Hello, World!" — it's a tradition since the 1970s! Now it's your turn. 🚀

📋 Instructions
Using two `print()` statements, output the following: ``` Hello World I am learning Python! ``` Make sure each message is on its own line!
Use print() with text in quotes. Example: print('Hello, World!'). Python will display whatever is between the quotes.
⚠️ Try solving it yourself first — you'll learn more!
print('Hello, World!')
# Output: Hello, World!
🧪 Test Cases
Input
Run your code
Expected
Hello World I am learning Python!
Expected program output
main.py
Hi! I'm Rex 👋
Output
Ready. Press ▶ Run or Ctrl+Enter.