class trigon(object): b = 0 h = 0 def a(self): return self.b * self.h total = trigon() total.b = 8 total.h = 5 total.a()
class trigon(object): b = 0 h = 0 def a(self): return self.b * self.h total = trigon() total.b = 8 total.h = 5 total.a()
print(total.a())