What is the purpose of the @staticmethod decorator in Python classes?
A. It defines a method that belongs to the class rather than an instance
B. It defines a static attribute
C. It defines a global function
D. It defines a constructor
Answer: Option A
Join The Discussion