Advertisement
ceiszele

Short teams

Dec 12th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. teams = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
  2. teams_shortened=[]
  3.  
  4.  
  5. for team in teams:
  6. teams_shortened.append(team[:3])
  7. print(teams_shortened)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement