-
-
Save basepi/2047781 to your computer and use it in GitHub Desktop.
random python functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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