Applying Functions To List Items

Create a list of regiment names

Using A For Loop

Create a for loop goes through the list and capitalizes each

# create a variable for the for loop resultsregimentNamesCapitalized_f=[]# for every item in regimentNamesforiinregimentNames:# capitalize the item and add it to regimentNamesCapitalized_fregimentNamesCapitalized_f.append(i.upper())# View the outcomeregimentNamesCapitalized_f