sue jones [person[ ][ for person in people['bob smith''sue jones'for person in peopleprint(person[ ][ split()[- ]person[ ][ * collect names get last names give raise smith jones for person in peopleprint(person[ ]['pay' ['pay' all we've really done here is add an extra level of positional indexing to do betterwe might inspect field names in loops to find the one we want (the loop uses tuple assignment here to unpack the name/value pairs)for person in peoplefor (namevaluein personif name ='name'print(valuefind specific field bob smith sue jones better yetwe can code fetcher function to do the job for usdef field(recordlabel)for (fnamefvaluein recordif fname =labelreturn fvalue find any field by name field(bob'name''bob smithfield(sue'pay' for rec in peopleprint(field(rec'age')print all ages if we proceed down this pathwe'll eventually wind up with set of record interface functions that generically map field names to field data if you've done any python coding in the pastthoughyou probably already know that there is an easier way to code this sort of associationand you can probably guess where we're headed in the next section sneak preview