Skip to content

Instantly share code, notes, and snippets.

@hixsondane
Created March 16, 2012 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hixsondane/2047768 to your computer and use it in GitHub Desktop.
Save hixsondane/2047768 to your computer and use it in GitHub Desktop.
random python functions
def list_benefits():
benefit = ["More organized code","More readable code","Easier code reuse","Allowing programmers to share and connect code together"]
return benefit
def build_sentence(benefit):
for list in benefit:
print "%s is a benefit of functions!" % benefit
def name_the_benefits_of_functions():
list_of_benefits = list_benefits()
for benefit in list_of_benefits:
print build_sentence(benefit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment