Advertisement
xavicano

Untitled

Aug 14th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. teams = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
  2. team_short=[]
  3.  
  4. def teams_short(teams):
  5.     for i in teams:
  6.         teams=i[0:3]
  7.         team_short.append(teams)
  8.        
  9. teams_short(teams)
  10. print(teams)
  11. print(team_short)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement