Published February 17, 2022
Python staticmethod() function
In python, the staticmethod() is a built-in function that returns a static method for a specific function.
The syntax of staticmethod() Function
The staticmethod() is written as follows:
|
staticmethod(function to be converted to a static method) |
Example
|
class Multiplier: |
Output
