+ 2

Python

What is ASCII code?

14th May 2025, 2:56 PM
Prachi
5 Answers
+ 7
Prachi Sen , ASCII code (American Standard Code for Information Interchange) is a numerical encoding standard for characters such as numbers, uppercase letters, lowercase letters, spaces, some special characters, and control characters. it was originally encoded in 7 bits, so it is capable of describing 128 characters. ASCII code for 'a' => 97, for 'b' => 98, for 'A' => > 65 (values ​​are decimal numbers). the standard was then increased to 256 characters. to get the ASCII code of a character like the lower case 'a', we can use the `ord(...)` built-in function: print(ord('a'))  # => 97 today we are talking more about *unicode* points / characters. unicode is an extended version of ASCII with support for characters for all languages. (appr. 140,000 characters) see also: https://en.m.wikipedia.org/wiki/ASCII https://en.m.wikipedia.org/wiki/Unicode
14th May 2025, 3:22 PM
Lothar
Lothar - avatar
+ 4
ASCII (American Standard Code for Information Interchange) is a character encoding standard that represents text in computers using numbers. Each letter, digit, or symbol is assigned a numeric code from 0 to 127 for eg:- the ASCII code for A is 65.
14th May 2025, 3:31 PM
Alhaaz
Alhaaz - avatar
+ 1
Thanks a lot 👍
14th May 2025, 3:31 PM
Prachi
+ 1
Thank you very much 👍
14th May 2025, 3:32 PM
Prachi