You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the tutorial for 2.7.9, in the section on quotes and the escape character, there is the following example text:
>>> '"Isn\'t," she said.'
'"Isn\'t," she said.'
>>> print'"Isn\'t," she said.'
"Isn't," she said.
>>> s ='First line.\nSecond line.'# \n means newline
>>> s # without print(), \n is included in the output
'First line.\nSecond line.'
>>> print s # with print, \n produces a new line
First line.
Second line.
Note the print() in a comment. Isn't that Python 3 syntax? Should just be print for 2.7, I believe.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: