Challenge: Write a Character Introduction
Practice using Python's print() function and variables to write a character introduction. You will store text and numeric data in variables and print them together to form sentences. This lesson helps you apply basic Python concepts by creating interactive output that combines text and data.
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:
Create variables for your character’s:
name (text)
species (text)
age (number)
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.