Skip to content

Instantly share code, notes, and snippets.

@okay-type
Created May 25, 2023 16:19
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 okay-type/9a17b4a6ddd23280f0175d77d348539b to your computer and use it in GitHub Desktop.
Save okay-type/9a17b4a6ddd23280f0175d77d348539b to your computer and use it in GitHub Desktop.
import with self
from sub import *
class this():
def __init__(self):
self.x = 2
y = sub_test(self)
print(y)
this()
def sub_test(self):
return (self.x * 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment