Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 21, 2020 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/26d9510e7e211ab0f078c91dadcab3a6 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/26d9510e7e211ab0f078c91dadcab3a6 to your computer and use it in GitHub Desktop.
s1={n for n in range(1,11) if n%2==0}
print (s1) #Output:{2, 4, 6, 8, 10}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment