Last active
August 29, 2015 14:05
-
-
Save danhyun/38a09d10a6ec0dd1ca90 to your computer and use it in GitHub Desktop.
python function demo
This file contains hidden or 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 returning_function(): | |
| print "inside of returning function" | |
| return "hello" | |
| def void_function(): | |
| print "inside of void function" | |
| returning_function() | |
| void_function() | |
| result = returning_function() | |
| print "Result of returning function is %s" % result | |
| result = void_function() | |
| print "Result of void function is %s" % result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment