[Tutor] hex output

Jimmy verma jim_938 at hotmail.com
Thu Sep 4 19:55:22 EDT 2003


Hello *,

I am having problem in converting hexadecimal no's according to the format i 
require.

>>>hex(65)
'0x41'
>>>hex(65)[2:]
'41'


I want to write it in 4 digits form like this  0041
and also in upper cases.

Your suggestion are welcomed.

Thanks a lot.

Regards,

J+

_________________________________________________________________
Need a naukri? Your search ends here. http://www.msn.co.in/naukri/ 50,000 of 
the best jobs!




More information about the Tutor mailing list