[issue36032] Wrong output in tutorial (3.1.2. Strings)
Amit Amely
report at bugs.python.org
Tue Feb 19 03:45:34 EST 2019
New submission from Amit Amely <amit.amely at gmail.com>:
This is the tutorial text:
>>> prefix = 'Py'
>>> prefix 'thon' # can't concatenate a variable and a string literal
...
SyntaxError: invalid syntax
>>> ('un' * 3) 'ium'
...
SyntaxError: invalid syntax
This is the actual result:
>>> prefix = 'Py'
>>> prefix 'thon' # can't concatenate a variable and a string literal
File "<stdin>", line 1
prefix 'thon' # can't concatenate a variable and a string literal
^
SyntaxError: invalid syntax
----------
assignee: docs at python
components: Documentation
messages: 335905
nosy: Amit Amely, docs at python
priority: normal
severity: normal
status: open
title: Wrong output in tutorial (3.1.2. Strings)
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36032>
_______________________________________
More information about the Python-bugs-list
mailing list