python modify variable in a class from main class and getting it in another class code example
Example: changing instance variable python inheritance
from fileA import Parent
class Child(Parent):
def __init__(self):
Parent.__init__():
self.valueB = 10
def Calculate(self):
self.result = self.valueB + self.valueA
print(self.result)