🎮 Variable Challenge 🐍
Today you’ll create variables to build your own character!
✅ Instructions
Make a variable called character with your favorite video game character’s name.
Make a variable called weapon with any weapon (sword, bow, etc.).
Make a variable called health with a number.
Then print a sentence like:
"Mario has a sword and 100 health points!"
📝 Example Code
character = "Mario"
weapon = "sword"
health = 100
print(character, "has a", weapon, "and", health, "health points!")
👉 Output:
Mario has a sword and 100 health points!
🎯 Bonus Challenge
Add a level variable.
Print: "___ is on level ___ with ___ health points and a ___."
💬 Share your character creation in the comments — let’s see who makes the strongest one! ⚔️
1
1 comment
Enrique Ontiveros
3
🎮 Variable Challenge 🐍
powered by
Python Playground 🐍
skool.com/python-playground-3614
A beginner-friendly Python community with live coaching, fun challenges, and a video game vibe to learn Python!
Build your own community
Bring people together around your passion and get paid.
Powered by