Quick Question

xkenneth xkenneth at gmail.com
Thu Jun 22 15:54:37 EDT 2006


I want to be able to cycle through an array and print something in
hexadecimal. Such as this
thisArray = ["AF","0F","5F"]
for x in range(len(thisArray)):
           print "\x" + thisArray[x]

However python chokes on the escaped identifier, how can I get around
this?

Thanks!
Regards,
Ken




More information about the Python-list mailing list