Created
May 30, 2019 14:29
-
-
Save carinadigital/3b961a5b793b5013c592f40b22494f62 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
class myclass: | |
myclassvar = '' | |
def myfunc(self, mytext): | |
self.myclassvar = mytext | |
def main(): | |
work = myclass() | |
work.myfunc("abcd") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment