Question: Hello, what is the bug here? class MathUtils: @staticmethod def average(a, b): return a + b / 2 print(MathUtils.average(2, 1)) It's not giving me the

Hello, what is the bug here?

class MathUtils:

@staticmethod def average(a, b): return a + b / 2

print(MathUtils.average(2, 1))

It's not giving me the right answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!