I’ve just been introduced to Zip (lesson 4 of Lists) and basically I can’t seem to get past the first instruction. The output I have is correct, as in it’s paired the two separate lists together into a a zip object which is then viewed by: print(list(names_and_dogs_names))
But I get an error message saying: " Is names_and_dogs_names
a zip()
with names
first and dogs_names
second?"
This is rather annoying because my printed output is correct, yet CodeAcademy compiler or whatever it is that checks that the condition for the instruction has bee met, has simply not worked. Unless there is something blatantly obvious I’ve missed out on. The full code is below:
names = [‘Jenny’, ‘Alexus’, ‘Sam’, ‘Grace’]
dogs_names = [‘Elphonse’, ‘Dr. Doggy DDS’, ‘Carter’, ‘Ralph’]
#List of Lists
names_and_dogs_names = zip(names, dogs_names)
print(list(names_and_dogs_names))