class puk(str): def z(self): return len(self) a = puk('privet')print(a, len(a), a.z())
Standard input is empty
privet 6 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!