Apr-23-2017, 08:29 PM
(Apr-23-2017, 07:06 PM)volcano63 Wrote:(Apr-23-2017, 12:32 PM)idontreallywolf Wrote: Well, you will have to follow some steps:
1. instead of using 2 lists (FirstName & LastName) you could just create a dictionary and put Firstnames and Lastnames in it.
example:Names = {'Anna':'Zenoff','Manny':'Ryan'}
and then you could create a list, call itFinal
.
And if the first name shows more than once in the first list? We have a beautifulzip
for meshing lists
for first_name, last_name in zip(fristName, lastName):I am not sure if 2 lists were a given - or it's OPs idea, but usingdict
the way you suggested here is definitely wrong
Well, then educate me brother. Why is using dict wrong? - in this case.