Commit 22a17cfc authored by Benjamin Peterson's avatar Benjamin Peterson

remove parenthesis from print statement (closes #23396)

parent 30375b78
...@@ -170,7 +170,7 @@ and special characters:: ...@@ -170,7 +170,7 @@ and special characters::
>>> print '"Isn\'t," she said.' >>> print '"Isn\'t," she said.'
"Isn't," she said. "Isn't," she said.
>>> s = 'First line.\nSecond line.' # \n means newline >>> s = 'First line.\nSecond line.' # \n means newline
>>> s # without print(), \n is included in the output >>> s # without print, \n is included in the output
'First line.\nSecond line.' 'First line.\nSecond line.'
>>> print s # with print, \n produces a new line >>> print s # with print, \n produces a new line
First line. First line.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment