i want to add a word for ex. 100 times to a list, here is my code
my expected result is ['word', 'word', 'word'...]
i = 1
text = [ ]
while i <= 100:
text += 'word'
i += 1
print(text)
the output is -> 'w', 'o', 'r', 'd', 'w', 'o', 'r', 'd', 'w', 'o', 'r', 'd', 'w', 'o', 'r', 'd', 'w', ...
all the letters are added separately,
Can smbdy explain why? And what is the right code for adding 100 words to a list ?
Thank you