Hello ,
I am new and I was stuck with the ord function.
When i passed the value like this it gave me proper o/p:
>>ord('\x16')
22
but when i concatenate '\x' and 16 the length of the string becomes 4 and it gives error.What's the method to convert it into ASCII like the one above for a string.
I am new and I was stuck with the ord function.
When i passed the value like this it gave me proper o/p:
>>ord('\x16')
22
but when i concatenate '\x' and 16 the length of the string becomes 4 and it gives error.What's the method to convert it into ASCII like the one above for a string.
Comment