2. Change the above code so that it works as stated in previous question.
2. Change the above code so that it works as stated in previous question. Read More »
# Code ML = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] new = [i for i in ML if i%2 == 0] # i%2 == 0 checks for even numbers print(new) # [4, 16, 36, 64, 100]