โ ๐ Python World
๐ First Words
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-strings put variables inside text: f"Hello, {name}!"
- Remember to return the text, not print it.
๐งช Coach checks
- โฏ greets Ava
- โฏ greets Leo
- โฏ greets a robot
Live coach
Getting ready
โโโ
๐ฌ f-strings put variables inside text: f"...{name}..." โ run it!
def say_bye(name):
return f"Bye bye, {name}!"
print(say_bye("Ava")) # Bye bye, Ava!
print(say_bye("Leo")) # Bye bye, Leo!
๐ It printed:
Nice โ you saw it work!
๐ Output
๐งฉ Gaps filled! Ready to write it all yourself?