Computer Applications
How are nongraphic characters represented in Python ?
Python Funda
2 Likes
Answer
Python allows us to have certain non-graphic characters in String values. These non-graphic characters can be represented by using escape sequences — represented by a backslash ( \ ) followed by one or more characters.
Some examples of non-graphic characters and their escape sequences are as follows:
| Escape Sequence | Non-Graphic Character |
|---|---|
| \a | ASCII Bell (BEL) |
| \n | New line character |
| \t | Horizontal tab |
Answered By
1 Like
Related Questions
How many types of integer literals are allowed in Python ? How are they written ?
What kind of literals are these : 011, 0X2A, 17, 014, 0XBC1 ?
What are string-literals in Python ? How many ways, can you create String literals in Python ?
What is meant by a floating-point literal in Python ? How many ways can a floating literal be represented into ?