H
hg
John said:Is there any built in function that converts ASCII to integer or vice
versa in Python?
Thanks!
John said:Is there any built in function that converts ASCII to integer or vice
versa in Python?
Thanks!
You probably should go through the tutorial ASAP that is located here:John said:Is there any built in function that converts ASCII to integer or vice versa
in Python?
Thanks!
Is there any built in function that converts ASCII to integer or vice versa
in Python?
Thanks!
Magic 8-ball: The future is cloudyIs there any built in function that converts ASCII to integer or vice versa
in Python?
The phrasing of your question threw us all. What you want is chrJohn said:I just found ord(c), which convert ascii to integer.
Anybody know what the reverse is?
John said:I just found ord(c), which convert ascii to integer.
Anybody know what the reverse is?
John said:I just found ord(c), which convert ascii to integer.
Anybody know what the reverse is?
In the versions of Basic that I've seen they were ASC (clearly ASCII)John said:I just found ord(c), which convert ascii to integer.Anybody know what the reverse is?
The inverse of "ord" is "chr":
% python
Python 2.5 (r25:51908, Jan 5 2007, 00:12:45)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
IIRC, the first use of the names "ord" and "chr" for these functions
appeared in the Basic language in the 1960's ... in case anyone is
interested in this bit of historical trivia.
I just found ord(c), which convert ascii to integer.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.