Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 22, 2020 00:55
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/6e01f815964810e450aa318b8637e6fa to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/6e01f815964810e450aa318b8637e6fa to your computer and use it in GitHub Desktop.
d={n:n*n for n in range(1,11) if n%2==0}
print (d)#Output:{2: 4, 4: 16, 6: 36, 8: 64, 10: 100}
print (type(d))#Output:<class 'dict'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment