abc="ABC"b="B"print abc.index(b)print "\n" abc2=abc.unpack('C*').pack('C*')b2=b.unpack('C*').pack('C*') print abc2.index(b2)print "\n"
Standard input is empty
1 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!