Can Nongraphic Characters Be Used in Python?

Can Nongraphic Characters Be Used in Python?

Yes, nongraphic characters can be used in Python with the help of escape sequences. For example, backspace is represented as \b, tab is represented as \t, carriage return is represented as \r.

What are Nongraphic characters in Python?

Python allows you to have certain non-graphic characters in string values. Non-graphic characters are those characters that cannot be typed directly from keyboard e.g. backspace, tab, spacebar, carriage return etc.

Can you have a non graphic character?

The "Non-Graphic characters" are the characters which "cannot be typed directly" through the keyboard. The examples of Non-Graphic characters are "backspace, tab, carriage returned". The escape sequences representing the Non-Graphic characters usually start with "backslash (\)" followed by "one or more characters".

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.