collection data types table common iterable operators and functions syntax description returns sequence that is the concatenation of sequences and returns sequence that is int concatenations of sequence in all(ireturns true if item is in iterable iuse not in to reverse the test returns true if every item in iterable evaluates to true any(ireturns true if any item in iterable evaluates to true enumerate(inormally used in for in loops to provide sequence of (instartdexitemtuples with indexes starting at or startsee text len(xreturns the "lengthof if is collection it is the number of itemsif is string it is the number of characters max(ikeyreturns the biggest item in iterable or the item with the biggest key(itemvalue if key function is given min(ikeyreturns the smallest item in iterable or the item with the smallest key(itemvalue if key function is given rangestartstopstepreturns an integer iterator with one argument (stop)the iterator goes from to stop with two arguments (startstopthe iterator goes from start to stop with three arguments it goes from start to stop in steps of step reversed(ireturns an iterator that returns the items from iterator in reverse order sorted(ireturns list of the items from iterator in sorted orderkey keyis used to provide dsu (decoratesortundecoratesorting reverseif reverse is true the sorting is done in reverse order sum(istartreturns the sum of the items in iterable plus start (which defaults to ) may not contain strings zip( returns an iterator of tuples using the iterators to ininsee text apart from the sys importthe program is just ten lines longif len(sys argv print("usagegrepword py word infile [infile infilen]]"sys exit(word sys argv[ for filename in sys argv[ :]for linoline in enumerate(open(filename)start= )if word in line