What is the output of the following code ? def s1(x, y): return x*y class A: @staticmethod def s1(x, y): return x + y def s2(self, x, y): return s1(x, y) a = A() print(a.s2(3, 7))

QuestionsCategory: Python 3What is the output of the following code ? def s1(x, y): return x*y class A: @staticmethod def s1(x, y): return x + y def s2(self, x, y): return s1(x, y) a = A() print(a.s2(3, 7))
admin Staff asked 3 years ago

Answer: 21