June 2017
Beginner
352 pages
8h 39m
English
Tuples are immutable sequence types
Literal syntax is optional parentheses around a comma-separated list.
Notable syntax for single element tuples utilizing the trailing comma.
Tuple unpacking - useful for multiple return values and swapping
Strings
String concatenation is most efficiently performed with the join() method rather than the addition or augmented assignment operators.
The partition() method is a useful and elegant string parsing tool.
The format() method provided a powerful means of replacing placeholders with stringified values.
Ranges
The range objects represent arithmetic progressions.
The enumerate() built-in function is often a superior alternative to range() for generating loop counters ...
Read now
Unlock full access