Hello World & Variables
Beginner
10 XP
You're trying this as a guest: your result shows here but isn't saved.
Sign in
Get started with Python by creating variables and printing output.
Tasks:
- Create a variable called
name and assign it your name as a string.
- Create a variable called
age and assign it a whole number.
- Print a greeting in the format:
Hello, my name is <name> and I am <age> years old.
This challenge teaches variable assignment, data types (str, int), and string formatting — the building blocks of every Python program.
To pass
- Should print a greeting containing 'Hello, my name is'
- Should include 'and I am' with the age
Need a hint?
- Use quotes around text values — name = "Your Name"
- Numbers don't need quotes — age = 25
- Use an f-string: print(f"Hello, my name is {name} and I am {age} years old.")