function design concepts recursive functions summation with recursion coding alternatives loop statements versus recursion handling arbitrary structures function objectsattributes and annotations indirect function calls"first classobjects function introspection function attributes function annotations in anonymous functionslambda lambda basics why use lambdahow (notto obfuscate your python code scopeslambdas can be nested too functional programming tools mapping functions over iterablesmap selecting items in iterablesfilter combining items in iterablesreduce summary test your knowledgequiz test your knowledgeanswers comprehensions and generations list comprehensions and functional tools list comprehensions versus map adding tests and nested loopsfilter examplelist comprehensions and matrixes don' abuse list comprehensionskiss generator functions and expressions generator functionsyield versus return generator expressionsiterables meet comprehensions generator functions versus generator expressions generators are single-iteration objects generation in built-in typestoolsand classes examplegenerating scrambled sequences don' abuse generatorseibti exampleemulating zip and map with iteration tools comprehension syntax summary scopes and comprehension variables comprehending set and dictionary comprehensions xvi table of contents