Hello, so my task is shown above in the image. I'm not asking for answers, I would just like to know how to get started on this.
My initial ideas are to:
1. Have user input str("example word")
2. Have user input int("Example number")
3. Use a for loop to read the number and then print the word out.
So far, my code is as shown below:
def repeat():
word=str(input("Please input a single word: "))
number=int(input("Please input a number: "))
for i in range(number):
number+=1
print(word,end=" ",sep='')
repeat()
However I'm running into two issues:
1. When printing the word out, the output is i.e "hello hello hello" instead of "hellohellohello"
2. I feel like I'm not exactly hitting the right points for the question.
Would appreciate any help!

end=" "is adding the space.printstatement to display a result correctly... your function doesn't actually return anything...wordandnumberto be passed as parameters torepeatinstead of input by the user and for the output to be returned rather than printed. You could create an empty stringsand then dos += wordin the loop instead. Alsonumber+=1is not needed and doesn't do anything useful.