Python - Class Methods and Static Methods
Which of the following is the correct way to define a static method in a Python class?
@staticmethod decorator is used to define static methods.self or cls as parameters, so the method should have no parameters.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions