fork download
  1. class Class:
  2. def method(self, arg):
  3. print(arg)
  4.  
  5. c = Class()
  6. c.method(42) # видишь, никакого self нет
Success #stdin #stdout 0.02s 9096KB
stdin
Standard input is empty
stdout
42