Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Derive abbreviations for the names given
- teams = ['wolves', 'bears', 'dragons', 'lions', 'owls', 'panthers']
- team_shortnames = []
- i = 0
- for item in teams:
- name = teams[i]
- team_shortnames.append(name[:3])
- i = i + 1
- print(team_shortnames)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement