[docs] wrong output in example | 3.6/tutorial/introduction

Igor Komyagin ikomyagin at gmail.com
Thu Mar 16 05:01:54 EDT 2017


Greetings.
I have found the wrong output on page
https://docs.python.org/3.6/tutorial/introduction.html in the example:


*This only works with two literals though, not with variables or
expressions:*
*>>>*

*>>> prefix = 'Py'
>>> prefix 'thon'  # can't concatenate a variable and a string literal
  ...
SyntaxError: invalid syntax
>>> ('un' * 3) 'ium'
  ... *

*SyntaxError: invalid syntax *

Right output should be:

>>> prefix = 'Py'
>>> prefix 'thon'
  File "<stdin>", line 1
    prefix 'thon'
                ^
SyntaxError: invalid syntax

It looks like a pretty easy fix.
Feel free to contact me for further information.

Best regards, Igor Komyagin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20170316/18c6761f/attachment.html>


More information about the docs mailing list