Strings Challenge
Todayโ€™s challenge is all about strings (text in Python).
โœ… Instructions
Create a variable called player_name with your name.
Create another variable called favorite_game with your favorite video game.
Print a sentence that combines both using a string.
๐Ÿ“ Example
player_name = "Enrique"
favorite_game = "Minecraft"
# This line is being concatenated
print("Hi, my name is " + player_name + " and my favorite game is " + favorite_game)
๐Ÿ‘‰ Output:
Hi, my name is Enrique and my favorite game is Minecraft!
1
3 comments
Enrique Ontiveros
2
Strings Challenge
powered by
Python Playground ๐Ÿ
skool.com/python-playground-3614
A fun and safe place for beginners to learn Python through simple lessons, playful challenges, and supportive feedback โ€” like a video game for coding.
Build your own community
Bring people together around your passion and get paid.
Powered by