Skip to content

Instantly share code, notes, and snippets.

@jefflunt
Last active August 29, 2015 14:06
Show Gist options
  • Save jefflunt/bf6a349a8ecb182baf28 to your computer and use it in GitHub Desktop.
Save jefflunt/bf6a349a8ecb182baf28 to your computer and use it in GitHub Desktop.
animal-module
def cow():
"""See: http://en.wikipedia.org/wiki/Cattle"""
return {
'sound': 'moo',
'legs': 4,
'covering': 'hair'
}
def horse():
"""See: http://en.wikipedia.org/wiki/Horse"""
return {
'sound': 'nay',
'legs': 4,
'covering': 'hair'
}
def cat():
"""See: http://en.wikipedia.org/wiki/Cat"""
return {
'sound': 'meow',
'legs': 4,
'covering': 'fur'
}
def duck():
"""See: http://en.wikipedia.org/wiki/Duck"""
return {
'sound': 'quack',
'legs': 2,
'covering': 'feathers'
}
def platypus():
"""See: http://en.wikipedia.org/wiki/Platypus"""
return {
'sound': 'brrrppppt',
'legs': 4,
'covering': 'fur'
}
def goat():
"""See: http://en.wikipedia.org/wiki/Goat"""
return {
'sound': 'baaa',
'legs': 4,
'covering': 'hair'
}
def wolf():
"""See: http://en.wikipedia.org/wiki/Gray_wolf"""
return {
'sound': 'howl',
'legs': 4,
'covering': 'fur'
}
def crow():
"""See: http://en.wikipedia.org/wiki/Crow"""
return {
'sound': 'caw',
'legs': 2,
'covering': 'feathers'
}
def chicken():
"""See: http://en.wikipedia.org/wiki/Chicken"""
return {
'sound': 'cluck',
'legs': 2,
'covering': 'feathers'
}
def goldfish():
"""See: http://en.wikipedia.org/wiki/Goldfish"""
return {
'sound': None,
'legs': 0,
'covering': 'scales'
}
def shark():
"""See: http://en.wikipedia.org/wiki/Shark"""
return {
'sound': None,
'legs': 0,
'covering': 'skin'
}
def dolphin():
"""See: http://en.wikipedia.org/wiki/Dolphin"""
return {
'sound': 'squeak',
'legs': 0,
'covering': 'skin'
}
def human():
"""See: http://en.wikipedia.org/wiki/Human"""
return {
'sound': 'Blah, blah, blah!',
'legs': 2,
'covering': 'skin'
}
def gecko():
"""See: http://img4.wikia.nocookie.net/__cb20130531003045/smashbroslawlorigins/images/1/15/GEICO_Gecko.jpg"""
return {
'sound': 'You could save a ton of money on your car insurance!',
'legs': 2,
'covering': 'scales'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment