Search⌘ K
AI Features

Challenge: About You

Explore how to store simple information like your name and age in Python variables. Learn to use the print function with commas to display text and numbers together naturally. This lesson helps you build foundational skills in using variables and output in Python programming.

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.")