Repeat a String

Beginner

Let's have fun with strings! Your task is to create a function repeat_string that takes a word and a number as input.

This function will return a new string that consists of the original word repeated as many times as the number specifies.

For example, if you repeat the word 'wow' 3 times, it should return 'wowwowwow'.

Think of it as a magical print button that stacks the words right next to each other! 🎉

Here are a few examples:

repeat_string('hello', 2) # Should return 'hellohello' repeat_string('abc', 3) # Should return 'abcabcabc' repeat_string('!', 5) # Should return '!!!!!'

Make sure to return the repeated string and have fun coding!

Geek
Inputs

Arg 1:

"hello"

Arg 2:

2
Expected Output
"hellohello"
Actual Output