Python version 2.0 introduced some exciting new features that, while not mandatory, can make your Python code more compact, error-free, and streamlined. The current version of Python (Python 3.0) inherits these powerful features.
This chapter explores these features:
enumerate function, which automatically supplies a loop counter.
Enhanced use of the
format function, to format output.
List comprehension ...