For this problem, start with the following list of words:
teams = ["Orioles", "Red Sox", "Rangers", "Indians", "Tigers", "Astros", "Royals", "Angels"]
You will also create a separate list with the corresponding string lengths of each item in the
teams list. Call the second list teamLengths.
Write a program that maps the teams list of words to a different list of integers
representing the lengths of the corresponding words (i.e., teamLengths). Use a for-loop. The length of team
item must be calculated using the len() function for each item in the teams list.
Print each item in the teams list and the corresponding string length from the teamLengths list.
Your list of string lengths must be stored in a separate list from the teams list.
Replace "Red Sox" with "Mets", using a list method, recalculate the list of integer lengths
and reprint the teams list and the corresponding lengths.
Take "Angels" out of the list and append "Marlins".
Recalculate the lengths and reprint the teams and lengths.
Hint: Documentation on list methods can be found here:
[url removed, login to view]