Python staticmethod() function
Published February 17, 2022In 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
Article Contributed By :
|
|
|
|
256 Views |