Lists in Python - Python Tutorial - w3Schools -Chapter-18 English

Publicado em: 30 Julho 2022
no canal de: w3Schools Tutorials
1,220
11

Lists are used to store multiple items in a single variable.

Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage.

Lists are used to store multiple items in a single variable.

Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage.

Ordered
When we say that lists are ordered, it means that the items have a defined order, and that order will not change.

If you add new items to a list, the new items will be placed at the end of the list.

Changeable
The list is changeable, meaning that we can change, add, and remove items in a list after it has been created.

List Length

To determine how many items a list has, use the len() function

There are four collection data types in the Python programming language:

List is a collection which is ordered and changeable. Allows duplicate members.
Tuple is a collection which is ordered and unchangeable. Allows duplicate members.
Set is a collection which is unordered, unchangeable*, and unindexed. No duplicate members.
Dictionary is a collection which is ordered** and changeable. No duplicate members.


Nesta página do site você pode assistir ao vídeo on-line Lists in Python - Python Tutorial - w3Schools -Chapter-18 English duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário w3Schools Tutorials 30 Julho 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,220 vezes e gostou 11 espectadores. Boa visualização!