Mega Code Archive

 
Categories / Python / String
 

Output and get length of a string with special characters

s = '\001\002\x03' print s print len(s)