In Python 3:
>>> str="Hello" # declare a string str
>>> print(str)
Hello
>>> str
'Hello'
When I don't use print
to print the string and simply write >>> str
then the output comes in single quotes and when I use >>> print(str)
the output does not come in single quotes. So why does this happen?