Oct-20-2021, 09:16 AM
1) please define the banned list at the top of your program
2) you do not need
3)I suggest iterating over index, and use
I hope these tips will help you, I am not sure if I am allowed to spoonfeed you.
2) you do not need
continue
inside the if statement3)I suggest iterating over index, and use
pop()
method so that you are able to remove all the occurrences of banned names in the other listI hope these tips will help you, I am not sure if I am allowed to spoonfeed you.