class Foo(str): pass foo = Foo("foo")print(foo) def add(self, x): return self + x Foo.add = addprint(foo.add("bar"))
Standard input is empty
foo foobar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!