String Magic ๐ช
Text in Python is called a string. Strings have superpowers:
Glue them together with +:
first = "cup"
second = "cake"
print(first + second) # โ cupcake
Repeat them with *:
print("ha" * 4) # โ hahahaha
Your mission
- Make a variable
soundwith a short sound in it (like"boom"or"meow") - Print your sound repeated 5 times using
*
Your code
Press โถ Run to see what your code does!