Skip to content

Instantly share code, notes, and snippets.

@basepi
Forked from hixsondane/pythonfunctiontest
Created March 16, 2012 00:09
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 basepi/2047781 to your computer and use it in GitHub Desktop.
Save basepi/2047781 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 "%s is a benefit of functions!" & benefit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment