python method chaining example Example: class chain methods python a = foo() a.line() a.my_print() a.bar() a.my_print() assert a.kind == 'bar'