User
Write something
Coffee hour is happening in 41 hours
F this!
Today's example/challenge is f strings. They are a bit more complex but can look more professional when writing Python. Copy and paste this into PyCharm and post a screenshot of the results. first_name = input("Enter your first name: ") last_name = input("Enter your last name: ") full_name = f"{first_name} {last_name}" print(f"Your full name is {full_name} .")
F this!
🎮 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! ⚔️
🎮 Daily Challenge – Strings 🐍
Today’s challenge is about working with text. ✅ Instructions Make a variable called word with your favorite word. Print it in all uppercase. Print it in all lowercase. 📝 Example Code word = "Python" print(word.upper()) # PYTHON print(word.lower()) # python 💬 Post your code in the comments and share your favorite word! 🚀
🎮 Daily Challenge – Strings 🐍
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-4 of 4
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