pass continue break loop else for loops general format examples loop coding techniques counter loopsrange sequence scanswhile and range versus for sequence shufflersrange and len nonexhaustive traversalsrange versus slices changing listsrange versus comprehensions parallel traversalszip and map generating both offsets and itemsenumerate summary test your knowledgequiz test your knowledgeanswers iterations and comprehensions iterationsa first look the iteration protocolfile iterators manual iterationiter and next other built-in type iterables list comprehensionsa first detailed look list comprehension basics using list comprehensions on files extended list comprehension syntax other iteration contexts new iterables in python impacts on codepros and cons the range iterable the mapzipand filter iterables multiple versus single pass iterators dictionary view iterables other iteration topics summary test your knowledgequiz test your knowledgeanswers the documentation interlude python documentation sources table of contents xiii