Pack 1 · Challenge 4 of 5 · 10 XP · ⏱ 4 min
Shout Box
📣 len() counts things: the letters in a word, or the items in a list.
word = "pizza" print(len(word))
5
Glue a number into text with str(): "I have " + str(3) + " lives".
Instructions
- Ask
input("Say it: ")and store it inword. - Print
wordin capitals with!!!on the end, likeHELLO!!! - Print
That was 5 letters.usinglen(word).
💡 Hint
word.upper() + "!!!" for the shout. For the count: "That was " + str(len(word)) + " letters."
bot.py
Terminal