What is hashable and mutable in python ?
What is the main difference between hashable and mutable in python ?
Seb TheS if i'm not mistaken, you've defined immutable not mutable. [FIXED] Deepak Bhamla Mutable are those that can be changed and modified (e.g: lists in python). Hashable objects are fixed values objects, all hashable objects are immutables but not all immutables are hashable objects. (e.g: dictionary keys are hashable, tuples are "usually" hashables). -My definitions and examples are mainly python.
Mo Hani thsnks
Mo Hani fixed
Mutable object is an object, whose values can be changed its after object's creation. I don't know what is hashable, hashtable? Hashtable is an array, whose values can be indexed with keys of any datatype.
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!