Add decription to data structures (#32377)
This commit is contained in:
		
				
					committed by
					
						
						Paul Happ
					
				
			
			
				
	
			
			
			
						parent
						
							085b99faeb
						
					
				
				
					commit
					0fd1d30c43
				
			@@ -1,14 +1,14 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
title: The Python Data Structures
 | 
					title: The Python Data Structures
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
A data structure is a particular way of organizing data in a computer so that it can be used efficiently. Python comes with a robust set of inbuilt data structures. Some of the most commonly used ones are :-  
 | 
					A data structure is a particular way of organizing data in a computer so that it can be used efficiently. Python comes with a robust set of inbuilt data structures. Some of the most commonly used ones are:  
 | 
				
			||||||
* Lists  
 | 
					* [Lists](https://docs.python.org/3/library/stdtypes.html#lists) — A sequence type where comma-separated values are ordered between square brackets and changeable.
 | 
				
			||||||
* Tuples  
 | 
					* [Tuples](https://docs.python.org/3/library/stdtypes.html#tuples) — A sequence type where values are ordered between parentheses and unchangeable.
 | 
				
			||||||
* Dictionaries  
 | 
					* [Dictionaries](https://docs.python.org/3/tutorial/datastructures.html#dictionaries) — An unordered collection that is changeable and indexed where values are held within curly braces in *key: value* pairs.  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Majorly, the data structures can be divided into two categories :-  
 | 
					Majorly, the data structures can be divided into two categories:  
 | 
				
			||||||
* Mutable :- A mutable data structure is a structure whose state can  be modified after it is created. Python Lists and Dictionaries are mutable.  
 | 
					* Mutable — A mutable data structure is a structure whose state can  be modified after it is created. Python Lists and Dictionaries are mutable.  
 | 
				
			||||||
* Immutable :- An immutable data structure can't be modified. Example :- Once a tuple is created, we can't update the values inside it.  
 | 
					* Immutable — An immutable data structure can't be modified. Example: Once a tuple is created, we can't update the values inside it.  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Reference:
 | 
					## Reference:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user