✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який результат буде виведено на консоль після виконання програми?
class SomeClass: def __new__(cls, a, b): if not hasattr(cls, 'instance'): cls.instance = super(SomeClass, cls).__new__(cls) return cls.instance def __init__(self, a=20, b=40): self.a = a self.b = b self.sum = a + bs = SomeClass(15,15)s.a = 30s.b = s.a - s.bs1 = SomeClass(20,20)s1.a = s1.a // 2s1.b = s1.b - 10print(s1.sum)