<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Title
Step1:  Using A For Loop
Create a for loop goes through the list and capitalizes each
Step2:  Using Map()
Create a lambda function that capitalizes x
Step3:  Map the capitalizer function to regimentNames, convert the map into a list, and view the variable
Step4:  Using List Comprehension
Apply the expression x.upper to each item in the list called regiment names. Then view the output
<ASSISTANT_TASK:>
Python Code:
regimentNames = ['Night Riflemen', 'Jungle Scouts', 'The Dragoons', 'Midnight Revengence', 'Wily Warriors']
Explanation: Title: Applying Functions To List Items
Slug: applying_functions_to_list_items
Summary: Applying Functions To List Items
Date: 2016-05-01 12:00
Category: Python
Tags: Basics
Authors: Chris Albon  
Create a list of regiment names
End of explanation
# create a variable for the for loop results
regimentNamesCapitalized_f = []
# for every item in regimentNames
for i in regimentNames:
    # capitalize the item and add it to regimentNamesCapitalized_f
    regimentNamesCapitalized_f.append(i.upper())
    
# View the outcome
regimentNamesCapitalized_f
Explanation: Using A For Loop
Create a for loop goes through the list and capitalizes each
End of explanation
capitalizer = lambda x: x.upper()
Explanation: Using Map()
Create a lambda function that capitalizes x
End of explanation
regimentNamesCapitalized_m = list(map(capitalizer, regimentNames)); regimentNamesCapitalized_m
Explanation: Map the capitalizer function to regimentNames, convert the map into a list, and view the variable
End of explanation
regimentNamesCapitalized_l = [x.upper() for x in regimentNames]; regimentNamesCapitalized_l
Explanation: Using List Comprehension
Apply the expression x.upper to each item in the list called regiment names. Then view the output
End of explanation
<END_TASK>