I have a list with strings as elements. All of them are in lower case. I want to modify the list so that this list also contains the strings in upper case for the first letter. I wrote this for loop:
> words = ["when", "do", "some", "any"]
with_title_words = words
>
> for u in words:
> u.title()
> with_title_words.append(u)
> print(with_title_words)
When I execute it goes infinite. It outputs all the string elements starting with the capital letter.