Skip to content

Instantly share code, notes, and snippets.

@odanga94
Created May 12, 2017 11:17
Show Gist options
  • Save odanga94/b21407b791d1b91d5a791184deed7610 to your computer and use it in GitHub Desktop.
Save odanga94/b21407b791d1b91d5a791184deed7610 to your computer and use it in GitHub Desktop.
PracticePython/Exercise7
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
c = [x for x in a if x % 2 == 0]
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment