Last active
April 25, 2016 19:11
-
-
Save m0wfo/53fe0a8b8890c068265dd4b5aeb12a79 to your computer and use it in GitHub Desktop.
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 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