Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to access variables from a class in python

class Example(object):
    itsProblem = "problem"


theExample = Example()
print(theExample.itsProblem)
print (Example.itsProblem)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #variables #class #python
ADD COMMENT
Topic
Name
2+3 =