Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 21, 2020 05:20
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/e6318cfde7610e684f07f9c02f9b2762 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/e6318cfde7610e684f07f9c02f9b2762 to your computer and use it in GitHub Desktop.
d1={n:n*n for n in range(1,11)}
print (d1) #Output:{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment