Write a program that checks if a variable some_object is hashable. If it is, you need to print "Hashable", otherwise — "Not hashable".
The Hashable class from the collections.abc module has already been imported, you don't need to do that.
Write a program that checks if a variable some_object is hashable. If it is, you need to print "Hashable", otherwise — "Not hashable".
The Hashable class from the collections.abc module has already been imported, you don't need to do that.
Create a free account to access the full topic