Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created Jul 22, 2020
Embed
What would you like to do?
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