All problems
EasyPython Basics
String repetition
Print "ha" repeated 5 times in a row.
- #strings
- #operators
Sample input
word = "ha", count = 5
Sample output
hahahahaha
string-repeat.py
Output
Press "Run code" to execute.
Loading…
Print "ha" repeated 5 times in a row.
word = "ha", count = 5
hahahahaha
Press "Run code" to execute.