you need to iterate over both list simultaneously. There are different ways to do so. I would suggest you look at this thread from our tutorial section and try to solve the problem on your own:
https://python-forum.io/Thread-Basic-Nev...n-sequence
Just that you don't miss the excellent link in the first post of the thread: https://nedbatchelder.com/text/iter.html
https://python-forum.io/Thread-Basic-Nev...n-sequence
Just that you don't miss the excellent link in the first post of the thread: https://nedbatchelder.com/text/iter.html
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs