Compsci 101, allLastNames
This exercise is for collaborative work during class. Do not fill out early!
Sign in to Google to save your progress. Learn more
Complete the function allLastNames
def allLastNames(data, firstName):
    '''
    The parameter data is a list of lists where each list is two  
    strings representing the first and last name of a person.
    The string parameter firstname is the first name of a person (one word).
    Return a list of the last names of all the people from data with this
    first name.
    '''
Complete the function allLastNames here. *
Complete the function correspondingLastNames
def correspondingLastNames(data, firstNames):
    '''
    The parameter data is a list of lists where each list is two  
    strings representing the first and last name of a person.
    The parameter firstNames is a list of the unique first names from
    data.
    return a list of lists of last names such that the nth list of last
    names corresponds to the nth first name in firstNames.
    '''
Complete the function correspondingLastNames here. *
Complete the function printFirstWithLasts
def printFirstWithLasts(firstNames, lastNames):
    '''
    firstNames is a list of first names, and lastNames is a list of list of corresponding last names that go with
    the first name in the same index position
   '''
   print "Print Unique First Names with all Last Names"      

Complete the function printFirstWithLasts here. *
Names and Netids below
Names (comma separated) *
netid *
netid (partner)
netid (partner)
netid (partner)
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy