Posts by mmtz • 26 points
1 post
-
1
votes2
answers4651
viewsA: From a list, return even numbers in python
Apart from agreeing with the confusion already expressed in the previous comments, a solution would be: lista1 = [4, 3, 2, 5, 7, 6] lista2 = [] for valor in lista1: if valor % 2 == 0:…