Sunday, January 19, 2020

Computer language[Python]quandary

{From Cognitiveclass.ai/}[
Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element, Dictionary holds key:value pair. Key value is provided in the dictionary to make it more optimized. Each key-value pair in a Dictionary is separated by a colon :, whereas each key is separated by a ‘comma’.
A Dictionary in Python works similar to the Dictionary in a real world. Keys of a Dictionary must be unique and of immutable data type such as Strings, Integers and tuples, but the key-values can be repeated and be of any type.]

That contradicts the well-known (hugely used) and widely respected definition of "dictionary" in real life.It takes all sorts to make this world,I guess,even the world in computer science!

Off the sarcasm meter,I have HUGE respect for Python!

No comments:

Post a Comment

The Four Seasons: a distinctive Western classical masterpiece

 Anyone who knows me well enough will know I am a music nut(not among the popular fruits : cashew, almond, hazelnut, but implying I am moved...