Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- teams = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
- # The new list to hold the short team names
- teams_short = []
- # For each entry in the teams list add first three Chars to short list
- for team in teams:
- teams_short.append(team[:3])
- # Print short list just to confirm the result.
- print(teams_short)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement