Skip to content

Instantly share code, notes, and snippets.

@m0wfo
Last active April 25, 2016 19:11
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 m0wfo/53fe0a8b8890c068265dd4b5aeb12a79 to your computer and use it in GitHub Desktop.
Save m0wfo/53fe0a8b8890c068265dd4b5aeb12a79 to your computer and use it in GitHub Desktop.
def setup_something():
# do some kind of setup
return 1
def finish_doing_something(arg):
# do something else
print(str(arg))
def some_method_a():
a = setup_something()
# logic unique to this function, e.g.:
a = 2
finish_doing_something(a)
def some_method_b():
b = setup_something()
# logic unique to this function, e.g.:
b = 3
finish_doing_something(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment