Given below is a list of car owners. The list contains tuples that are in the form of (owner name, car)
. Your task is to use the groupby()
function and print which car is owned by whom. Make sure you sort the list by car name before you group the tuples.