What is the purpose of the ‘staticmethod’ decorator in Python?
(A)
To define a static method in a class
(B)
To access global variables
(C)
To create a static variable
(D)
To declare a method as static
Answer: (A)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles