To give a tab space while printing the statement, we use _________ in Python. *
i) \t
ii) /t
iii) Tab Key
Answers
To give a tab space while printing the statement, we use \t in Python.
i) \t
Example
print("Python\tProgramming")
Output
Python Programming
\t gave a tab space between the words Python and Programming.
Extra Information
Escape characters are those characters in Python which help us in representing whitespace characters.
There are various other types of escape characters such as
\' for Single Quote
\\ for Backslash
\n for New Line
\r for Carriage Return
\t for Tab
\b for Backspace
\f for Form Feed
\ooo for Octal value
\xhh for Hex value
Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.