How to convert ASCII to TEXT ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to convert ASCII to TEXT ??

give text is like 656787 without any space

25th Dec 2017, 2:28 PM
DEATH WALKER
DEATH WALKER - avatar
4 Answers
+ 13
''' To convert a number to a text: You will use the function chr(), example: ''' print(chr(100)) ''' To convert text to their ascii character, you use the function ord(),example: ''' print(ord('V'))
25th Dec 2017, 3:36 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 1
+Martin Taylor I want python program or some syntax how to do that
25th Dec 2017, 2:40 PM
DEATH WALKER
DEATH WALKER - avatar
+ 1
I think the only ones that are three characters long start with a "1" or "2". all others are two characters long. You are in trouble if there are characters starting with "1" or "2" that are only two characters long. But maybe they are not used, they are not readable.
25th Dec 2017, 11:51 PM
Paul
Paul - avatar
0
how to separate numbers to get 3 digit number or 2 digit in a given. string like 1207889...like that
25th Dec 2017, 3:57 PM
DEATH WALKER
DEATH WALKER - avatar