0 votes
by (440 points)
How do I get the ascii value in Python?

1 Answer

0 votes
by (400 points)
To get the ASCII code of a character, use the ord() function. To get the character encoded by an ASCII code number, use the chr() function. To know if all the characters present in a string are alphanumeric i.e. they are alphabets and numeric, use the isalnum() function.

Related questions

0 votes
1 answer
asked Nov 28, 2019 by example (1k points)
0 votes
1 answer
asked Nov 28, 2019 by format (280 points)
0 votes
1 answer
asked Nov 28, 2019 by characters (320 points)
0 votes
1 answer
asked Nov 28, 2019 by binary (160 points)
0 votes
1 answer
0 votes
1 answer
asked Nov 28, 2019 by should (820 points)
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers
...