Created
May 14, 2014 15:58
-
-
Save benjaminEwhite/5d608c9bd8ee67acadb9 to your computer and use it in GitHub Desktop.
example of function with no arguments
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 print_function(): | |
""" I'm also a function, but I don't take any parameters""" | |
print "I'm {}, and I'm printing now".format(print_function.__name__) | |
if __name__ == '__main__': | |
print_function() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment