Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #write code to take 1st 3 letters of a team name and then add them to new list
- teams = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
- teams_short = []
- for name in teams:
- teams_short.append(name[0:3])
- print(name[0:3])
- print(teams_short)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement