You have to print the items of your names list.
to do this we use for loop.
suppose x is a list of numbers and I want to print the items (i.e 1,2,3,4,5) of this list..
x = [1 ,2 ,3 ,4 ,5]
we use this syntax..
for iteration_variable in list_name:
so I have to iterate over list
x, I'd do this..
for i in x:
You can use any name for iteration_variable (I named it
i ,Iteration variable name follows variable name-rule of python)
if you look at the example i did not put
x inside [...] right?
also you should not use same list name as iteration variable..
for x in x:
It will not throw an error but it will confuse you.
i hope it clears your doubt.
Read the theory and instructions again.
You can also read this thread for more clarification.