Created
March 26, 2021 14:50
-
-
Save pralabhsaxena05/4d440fd7549291efec4d49af8ba5ad00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str1 = "Hello World" | |
a = 12.5 | |
tup = ('a', 'b', 'c') | |
print('hash value for a string: ', hash(str1)) | |
print('hash value for a decimal: ', hash(a)) | |
print('hash value for a tuple: ', hash(tup)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment