I'm attempting to program something in Python having never used it before, nor done any tutorials. Google gets you quite far but I've run into a problem and it's confusing me.
Right, so I have some bytes, in an array. Or possibly a string.
a=data[12]
print a
I get a character printed (Ý) which is obviously the ASCII character of the number I want.
I have tried using int() to convert it - and have used that elsewhere with success, but in this case I get an error - ValueError: invalid literal for int() with base 10: '\xed'
I think the problem is in understanding the type of data I've got. In C it would simply be an array of bytes, and extracting one like that gets you an integer, not a character.
Any clues?