Character Sets:
"A character set in Python is a collection of legal characters that a scripting language will recognize when writing a script."
A character set refers to the composite number of different characters that are being used and supported by a computer software and hardware.
In Python character set are a legitimate collection of characters that the Python language can recognize.
The legal characters are numbers, letters, punctuation marks, and special symbols that can be used by a particular software,languageor device as a ASCII(American Standard Code for Information Interchange).
It consists of codes, bit pattern or natural numbers used in defining some particular character.
Python: Python is a high-level, general-purpose Scripting language.
Python code are more flexible and readable and allows programmer to express their logic, idea in fewer lines of code. The Code is known as Script.
These scripts contain character sets, tokens, and identifiers. In this article, we will learn about these character sets.
Character set:
character Set are valid set of character Accepted by Python scripting . Character Represents any letters, numbers, any symbol.
So, the Python character set is a valid set of characters recognized by the Python language. These are the characters we can use during writing a script in Python.
Python supports all ASCII / Unicode characters that include:
1. Alphabet:
It includes the uppercase and lowercase alphabet letters of English, i.e., Uppercase Alphabet :=A, B, C, D, E, . . . . and Lower Case Alphabet:=a, b, c, d, e, f, . . . . .
2. Digits:
It includes the numeric digits, from 0…9 i.e. :=0, 1, 2, . . . . 9.
3. White Spaces:
white spaces used in python are like tab space, blank space, newline, and carriage return.
4. Special Characters:
Python script includes the special symbols.
such as {, !, ?, #, <, >, (, ), %, “, &, ^, *, <<, >>, [, ], +, =, /, -, , _, :, ;, }.
Next topic Tokens in Python