Python Object Oriented Programming (OOP) for Beginners
1class Math: 2 @staticmethod 3 def add5(x): 4 return x + 5 5 6 @staticmethod 7 def pr(): 8 print("run") 9 10print(Math.add5(5)) # 10, no instance needed