Last active
September 23, 2017 22:45
-
-
Save meggangreen/bbe2fa3222e66920f7cb6299169489a9 to your computer and use it in GitHub Desktop.
green_animals.py created by meggangreen - https://repl.it/L65S/2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
animals = [ | |
'alligator','baboon','chameleon','deer', | |
'eagle','falcon','gazelle','hippopotamous', | |
'ibis','jaguar','kookaburra','lemur', | |
'manatee','narwhal','octopus','penguin', | |
'quetzal','raccoon','salamander','tiger', | |
'unau','vervet','walrus','xenopoecilus', | |
'yabby','zebra' | |
] | |
k_list = [] | |
for aminal in animals : | |
if aminal[0] == 'k' : | |
k_list.append(aminal) | |
print k_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment