โ ๐ Python World
๐ Crowd Cheer
You can practise without a player, but pick a player to score points!
๐ The mission
Today you unlock
Text can be built from pieces
String levels are about joining words, numbers, and punctuation in the exact order the mission asks for.
๐ก Hint ladder
- f-string: f"Go {name} go!"
- return it, don't print it.
๐งช Coach checks
- โฏ cheers Ava
- โฏ cheers Leo
- โฏ cheers a team
Live coach
Getting ready
โโโ
๐ฌ Same f-string trick โ the variable slots right into the text.
def announce(name):
return f"Now entering... {name}!!!"
print(announce("Ava")) # Now entering... Ava!!!
๐ It printed:
Nice โ you saw it work!
๐ Output
๐งฉ Gaps filled! Ready to write it all yourself?