Is there a way to call a class variable from within a method, without using the class name?
So instead of:
class ClassTest:
var1 = 5
def __init__(self, var2):
self.var2 = var2
print(ClassTest.var1*self.var2)
How could I call the class name avoiding having to specify the class name ClassTest
?