I have a problem with my code, so I want my output to be:
Baa
Baa, Baa
Baa, Baa, Baa
etc. 10 times over
if the input is: Baa
This is my code:
user_input = str(input("Write something: "))
for i in range(10):
i += 1
print(user_input*i)
However this only prints:
Baa
BaaBaa
BaaBaaBaa
And I can't figure out how to add a comma between every word.