I wrote this program, where I need to make a list of names, with last names alphabetized, and first names in front of it. This is what I did so far:
firstnames = ['good', 'bad', 'tall', 'big']
lastnames = ['boy', 'girl', 'guy', 'man']
list3 = [a + b for a, b in zip(firstnames, lastnames)]
l3 = sorted(list3)
n = len(l3)
l4 = zip(*[l3])
print l3
print l4
the zip* makes the elements into tuples, but how do I separate the elements again, and join them in a different order?