Search⌘ K
AI Features

Challenge: About You

Explore how to store personal data using variables in Python and print sentences that include your name and age. Learn core concepts of variable assignment and printing multiple items to build your foundation in coding.

We'll cover the following...

Python can remember information by storing it in variables.

A variable has:

  • a name

  • an equals sign (=)

  • a value (like text or a number)

Your task:

  1. Store your name in a variable

  2. Store your age in a variable

  3. Print a sentence that uses both of them

💡 Hints:

  • Text (like a name) goes inside quotation marks

  • Numbers (like an age) do not

  • You can print multiple things at once by separating them with commas

When you click Run, Python should print a sentence about you.

Python
name = "" # Add/change your name here
age = 0 # Add/change your age here
print("Hi, my name is", name, "and I’m", age, "years old.")