decimal to string conv

I am trying to convert a list to string.
example [80, 89,84,72,79,78,0] is my input. I could make it to just
[0x50,0x59,0x54,0x48,0x4F,0x4E,0x00].
but I wanted it to be like "PYTHON".
I couldnt even convert 0x50 to 'P'. Is there any library api available
to do this? it will be really helpful to me.
dont bang me if its already being asked. I just 'dived' into python
yesterday.

Advertisements

On Fri, Feb 27, 2009 at 1:45 AM, Aj <> wrote:
> Hi all,
>
> I am trying to convert a list to string.
> example [80, 89,84,72,79,78,0] is my input. I could make it to just
> [0x50,0x59,0x54,0x48,0x4F,0x4E,0x00].
> but I wanted it to be like "PYTHON".
> I couldnt even convert 0x50 to 'P'. Is there any library api available
> to do this? it will be really helpful to me.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!