PythonSkills.org
Courses
Exercices
Challenges
Quizzes
Open console
0 points
Get started
Loading...
All Challenges
Loading...
Not Solved
Repeat a word n times
Write a function that takes a word and an integer n, and returns the word repeated n times, separated by a hyphen.
Intermediate
Hint
sample input: "hello", 3
sample output: hello-hello-hello
Loading...
Run Tests
Clear Tests
Test Output:
Show Solution
Show Code
Next challenge: Concatenate list of numbers as string