132k views
3 votes
What is the output of the following line of code? print (“I\tLove Python”)

1 Answer

4 votes

Answer: it will print:

I (4 spaces) Love Python

Explanation: the \t adds in a tab (4spaces) in a print statement

What is the output of the following line of code? print (“I\tLove Python”)-example-1
What is the output of the following line of code? print (“I\tLove Python”)-example-2
User Tuong Le
by
5.2k points