You've learned that variables are like labeled boxes that store information. Now let's practice creating and using them effectively.
Engagement Message
Ready to become a variable master?
Type
Multiple Choice
Practice Question
Which line of code correctly creates a variable named player_name
and stores the value "Alex"
in it?
A. player_name = "Alex" B. "Alex" = player_name C. player_name == "Alex" D. Alex = player_name
Suggested Answers
- A - Correct
- B
- C
- D
Type
Fill In The Blanks
Markdown With Blanks
Complete the code to create a variable called age
with the value 25
, then print it:
Suggested Answers
- age
- 25
- age
Type
Multiple Choice
Practice Question
What would be the output of this code?
A. I live in Tokyo B. I live in city C. I live in "Tokyo" D. Tokyo
Suggested Answers
