Skip to content

Instantly share code, notes, and snippets.

@danhyun
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save danhyun/38a09d10a6ec0dd1ca90 to your computer and use it in GitHub Desktop.

Select an option

Save danhyun/38a09d10a6ec0dd1ca90 to your computer and use it in GitHub Desktop.
python function demo
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