list1=['name1','name2','name3']
list2=[123,1234,12345]
I wanna say in python, if index of 'name1' in the first list is equal to index of 123 in the second list without knowing them.
For example 'name1' and 123 is user input.
I have tried many things like using .index, but I get an error.
TypeError: list indices must be integers or slices, not str
and tried many other things but none worked as i wanted