Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Cyborg-Model-Z/520f0a13c19aa5a4950df80355912839 to your computer and use it in GitHub Desktop.
Save Cyborg-Model-Z/520f0a13c19aa5a4950df80355912839 to your computer and use it in GitHub Desktop.
Swamp 1.0
print ("Hello")
frogs = 0
print ("Here are two frogs")
suggestion = "Let's breed them"
respect = ", don't watch it's rude"
initialization= (suggestion + respect)
def double_frogs(frogs):
"""Doubles your frogs!"""
print (initialization)
print("you now have " + str(frogs*2))
double_frogs(2)
#Let's try a new food
print ("Pool sanitized")
print ("Here are 3 fresh frogs and the new food")
def triple_frogs(frogs):
"""Triples your frogs"""
return frogs * 3
print("you now have " + str(triple_frogs(3)))
@Camsbury
Copy link

Camsbury commented Mar 8, 2019

Funny stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment