Skip to content

Instantly share code, notes, and snippets.

@vikychoi
Created November 6, 2017 04:47
Show Gist options
  • Save vikychoi/c9142c7c7cd79e321667586844b5ff04 to your computer and use it in GitHub Desktop.
Save vikychoi/c9142c7c7cd79e321667586844b5ff04 to your computer and use it in GitHub Desktop.
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
b=[]
for i in a:
if i%2 == 0:
b.append(i)
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment