Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - from random import choice
 - teams = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
 - teams_short = [] #create empty list for results
 - for i in teams:
 - abbreviation=i[:3] #add the first 3 letters of the team name to a variable)
 - teams_short.append(abbreviation) #add the contents of the variable to the new list
 - print(teams_short)
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment