Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- animals = ["WOLVES", "OWLS", "PANTHERS", "BEARS", "DRAGONS"]
- animals_3letters = []
- for i in animals:
- animals_3letters.append(i[0:3])
- print("Short list: ", animals_3letters)
- # Another way to print the short list
- string = animals_3letters
- string_animals = string
- print ("Short list: "+ str(string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement