Skip to content

Instantly share code, notes, and snippets.

@meggangreen
Last active September 23, 2017 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meggangreen/bbe2fa3222e66920f7cb6299169489a9 to your computer and use it in GitHub Desktop.
Save meggangreen/bbe2fa3222e66920f7cb6299169489a9 to your computer and use it in GitHub Desktop.
green_animals.py created by meggangreen - https://repl.it/L65S/2
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