Advertisement
SwissChris52

Untitled

Sep 2nd, 2019
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # Teams Short
  2.  
  3. def shortname (NameIn):
  4. NameOut = NameIn[:3]
  5. return NameOut
  6.  
  7. teams = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
  8. shortteams = []
  9. for Index in range (len (teams)):
  10. shortteams.append (shortname(teams [Index]))
  11.  
  12. for Index in range (len (teams)):
  13. print (teams [Index],"shortname is",shortteams [Index])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement