You can use a module function instead of a staticmethod, this method is useless in Python as it knows nothing about the class or instance it was called on. It just gets the arguments that were passed.
On the other hand, Classmethod is useful when we want the method to be a factory for the class as It gets actual class it was called on as first argument, Hence this method gets passed the class that it was called on or the instance it was called on as first argument.
Therefore @classmethod makes a method whose first argument is the class whereas @staticmethod doesn’t have any implicit arguments.
To summon up I am adding an example of both the methods you can try this by your own in Python
@classmethod example:-
class C:
@classmethod
Def f(cls, arg1, arg2, arg3,…….argN):…..
@Staticmethod example
class C:
@staticmethod
Def f(cls, arg1, arg2, arg3,…….argN):…..
Here N denotes all natural No.