๐ŸŽฎ 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