adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
class A:
    @staticmethod
    def a(x):
        print(x)
A.a(100)

a.

Error

b.

Warning

c.

100

d.

No output

Answer: (c).100

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown below?