Re: [Tutor] Hex conversion strangeness

2006-05-24 Thread John Fouhy
On 25/05/06, Andrew Robert <[EMAIL PROTECTED]> wrote: > If the 0X21 is the actual hex value, then why convert to integer? > > Is this the ASCII table reference to the hex value? Hi Andrew, There is a difference between a number and the representation of that number. For example, there is a numbe

[Tutor] Hex conversion strangeness

2006-05-24 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Everyone, I am trying to understand conversion of a value to hex. Could you please confirm that what I am doing is right? Get the hex value of ! and store it in a a=hex(ord('!')) print a 0X21 I see examples including this kind of a statement bu