'Trying to understand the use of escape character '\t' with print function
I was playing around with print() and its end = "\t" argument with strings and integers. When I use integers inside, I don't seem to see the 'tab' effect at output.
Say,
print("Hello","mn", end="\t")
print("World")
Output:
Hello mn World
But the below,
print("123","567", end="\t")
print("no!")
Output:
123 567 no!
That could be something dumb on my part, but I'm not sure what it could be. Thanks!
I'm using a Python 3 Jupyter-lab kernel.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
