Skip to content

Instantly share code, notes, and snippets.

@TomerCohen95
Last active September 23, 2020 06:28
Show Gist options
  • Save TomerCohen95/557327a36afdd0a4e22b81b59bd56f74 to your computer and use it in GitHub Desktop.
Save TomerCohen95/557327a36afdd0a4e22b81b59bd56f74 to your computer and use it in GitHub Desktop.
# First Project (ModuleA)
class ModuleA:
def __init__(self, module_b: ModuleB, module_c: ModuleC):
print('im code from module A')
module_b.hello()
module_c.hello()
def hello(self):
print('hello from A')
# Second Project (ModuleB)
class ModuleB:
def __init__(self, module_c: ModuleC):
print('im code from module B')
module_c.hello()
def hello(self):
print('hello from B')
# Third Project (ModuleC)
class ModuleC:
def hello(self):
print('hello from C')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment