0

python ascii code

how can i Convert number to ascii code in Python

8th Jun 2020, 10:07 AM
nima rasi
5 Respuestas
+ 5
u can get it using function named as ord():- >>> ord('h') 104 >>> ord('a') 97 >>> ord('^') 94
8th Jun 2020, 10:11 AM
Muhammad Faheem Nasir
Muhammad Faheem Nasir - avatar
+ 4
chr(number)
8th Jun 2020, 10:10 AM
Abhay
Abhay - avatar
8th Jun 2020, 10:36 AM
Arctic Fox
Arctic Fox - avatar
0
Char to number ord(ch) Number to char ch(num)
8th Jun 2020, 12:21 PM
george
george - avatar