Posts by Jrneliodias • 11 points
2 posts
-
-1
votes2
answers50
viewsQ: Strange error in For in Python
Hello, my friend. I’m making a very stupid mistake that I can’t even understand why it’s wrong. a = [1, 4, 5] b = [] for i in range(0,len(a)): c = a[i+1] b.append(c) The mistake is IndexError: list…
-
-1
votes1
answer168
viewsQ: How to compare two lists of names in python?
Hello, all right? So I have two lists in pdf and I would like to get the names of the people who are on both lists. How would you do this in python? It would be better in another language?…