Mapa mental
Data Structures
Conteúdo do mapa
Data Structures
Lists: ordered, changeable & allow duplicates
- can hold elements of different data types
- Adding an element to a list places it at the end
- .append()
- when deleting an element
- remove the element
- .remove()
- pop the index
- .pop()
- remove the element
- to access an element in a list
- [ ]
- Adding an element to a list places it at the end
- can hold elements of different data types
Tuples: ordered, unchangeable, & allow duplicates
- we cannot update or delete
Sets: unordered, unchangeable, reject duplicates
- you can add or update but not remove
- adding elements
- .add()
- merge sets
- .update()
- adding elements
- you can add or update but not remove
Dictionaries: ordered, changeable, and does not allow duplicates
- it can be any data type
- used to store data values in key:value pairs
Informações
- Descrição
- Mapa Mental sobre Data Structures, criado por Yanella tree em 14-09-2021.
- Criado por
- Yanella tree
- Visualizações
- 0
- Avaliação