Source Code:
(back to article)
class MyClass: def method(self, arg1, arg2): print(arg1, arg2) obj = MyClass() obj.method("hello", "world") # gibt "hello world" aus
Result:
Report an issue