Repeat text
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Working with strings →
Repeat text
* repeats text. "ha" * 3 becomes hahaha.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Use * to repeat text. Show hahaha: print("ha" * 3).
Click Run to see the output here.