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

Pubblicato il: 30 luglio 2022
sul canale di: 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.


In questa pagina del sito puoi guardare il video online Lists in Python - Python Tutorial - w3Schools -Chapter-18 English della durata di ore minuti seconda in buona qualità , che l'utente ha caricato w3Schools Tutorials 30 luglio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,220 volte e gli è piaciuto 11 spettatori. Buona visione!