Search⌘ K
AI Features

Challenge: Write a Character Introduction

Explore how to create a character introduction by storing a character's name, species, and age in variables. Learn to use Python's print() function to combine text and variable values in sentences. This lesson helps you understand basic data types and printing techniques to build simple interactive programs.

We'll cover the following...

You can use print() to display both text and variables together in one sentence.

In this challenge, you’ll create a short introduction for a fictional character by:

  • Storing information in variables

  • Printing sentences that mix text and those variables

Your task:

  1. Create variables for your character’s:

    1. name (text)

    2. species (text)

    3. age (number)

  2. Use print() to introduce your character in one or two sentences

💡 Hints:

  • Text goes inside quotation marks

  • Numbers do not

  • Inside print(), you can separate text and variables using commas

Example output (yours can be different):

Meet Zorblax, a 402-year-old alien.
Zorblax has an incredible power: teleportation!

When you click Run, Python should print your character’s introduction.

Python
# Write your code here