fork download
  1. class Person:
  2. @staticmethod
  3. def hello():
  4. print('Hello!')
  5.  
  6. print(type(Person.hello))
  7. print(type(Person().hello))
Success #stdin #stdout 0.02s 28376KB
stdin
Standard input is empty
stdout
<class 'function'>
<class 'function'>