Posts by Renan Berkenbrock • 3 points
2 posts
-
0
votes3
answers241
viewsA: Remove elements from a Python Stop List
Worked for the enumerate and so too, follows below: i_temp = -1 for w in lista_8: i_temp = i_temp + 1 if len(w) == 0: lista_n[i_temp] = 0 print(lista_8) print(lista_n)…
-
0
votes3
answers241
viewsQ: Remove elements from a Python Stop List
Basically I want to remove the elements from a second list based on the result of another list. I have two lists: lista_8 = ['', '', 'Preco', '', 'Preco', '', '', 'Preco'] lista_n = ['positivo',…