Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Python: clarified which types are allowed as or not allowed as dictionary keys in python, as being immutable or mutable, respectively.
Tags: Reverted Mobile edit Mobile web edit
Reverted 1 edit by 184.101.99.76 (talk) to last revision by Jerryobject
Line 1,598:
</syntaxhighlight>
 
In Python,The dictionary keys must be of an [[Immutable object|immutable]] data type,. allowingIn types like integersPython, strings, andare tuplesimmutable asdue dictionaryto keystheir butmethod notof lists or other dictionaries<ref>{{Cite web|url=https://ioflood.com/blog/python-dictionary-guide-examples-syntax-and-advanced-uses/#Incremental_Building_and_Modification_of_Dictionaries|title=Python Dictionary Immutable Keys|website=ioflood.com|access-date=2023-12-09}}</ref>implementation.
 
===Red===