#If you are trying to make a NEW list in a for loop do this:
EXAMPLE:
new_list = [i for i in range(number)]
print(new_list)
#OUTPUT: [val1, val2, val3, val4... valn]
# Creating a new list
cities = ['new york city', 'mountain view', 'chicago', 'los angeles']
capitalized_cities = []
for city in cities:
capitalized_cities.append(city.title())
print(capitalized_cities)
# output - ['New York City', 'Mountain View', 'Chicago', 'Los Angeles']