Write repeat(word, times=2) that returns the word repeated times times with no spaces. times is 2 if not given.
repeat('ha')
→ 'haha'repeat('ab', 3)
→ 'ababab'Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.