strings problem

Jimmy verma jim_938 at
Mon Jul 7 10:23:15 CEST 2003


print t

The output is

Token: 50
Token: 800

Instead of this i want the output should be in no's like this:

print repr(t)


print ''.join(['%02X' % ord(c) for c in t])


yeah that solved the problem. Can you please tell me sthing more regarding 
what you have suggested here:

print ' ' .join([' 02X' % ord(c) for c in t])

Thanks again.


Dress up your desktop! Get the best wallpapers. Just 
click here!

More information about the Python-list mailing list