[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Amit Amely
New submission from Amit Amely : This is the tutorial text: >>> prefix = 'Py' >>> prefix 'thon' # can't concatenate a variable and a string literal ... SyntaxError: invalid syntax >>> ('un' * 3) 'ium' ... S

[issue36032] Wrong output in tutorial (3.1.2. Strings)

2019-02-19 Thread Amit Amely
Amit Amely added the comment: But it also contains an error message part which has nothing to do with this example (marked in dark green) This only works with two literals though, not with variables or expressions: >>> prefix = 'Py'>>> prefix 'thon'