June 2017
Beginner
352 pages
8h 39m
English
Concatenation of strings is supported using the plus operator:
>>> "New" + "found" + "land"Newfoundland
Also the related augmented assignment operator:
>>> s = "New">>> s += "found">>> s += "land">>> s'Newfoundland'
Newfoundland, the sixteenth largest island in the world, is one of relative few closed, triple-compound words in English:

Remember that strings are immutable, so here the augmented assignment operator is binding a new string object to s on each use. The illusion of modifying s in place is achievable because s is a reference to an object, not an object itself. That is, although the ...
Read now
Unlock full access