wrong output in example | 3.6/tutorial/introduction

March 16, 2017
10:01 a.m.
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
2967
Age (days ago)
2967
Last active (days ago)
0 comments
1 participants
participants (1)
-
Igor Komyagin