Concatenation of adjacent strings

Adjacent literal strings are concatenated by the Python compiler into a single string:

>>> "first" "second"
'firstsecond'

Although at first this seems rather pointless, it can be useful for nicely formatting code as we'll see later.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset