I'm learning python and I've come across this problem that seems very simple, but I can't find a way
I have two lists:
animals = ['cat', 'dog']
animals_name = ['rex', 'laika']
I tried:
for animal in animals:
for name in enumerate(animals_name):
print(animal, name)
and got:
cat (0, 'rex')
cat (1, 'laika')
dog (0, 'rex')
dog (1, 'laika')
I was hoping to get:
cat rex
dog laika