#shorts
This quick video demonstrates using a list in Python. This is intended for those who are new to Python. A list is a construct which can store zero or more values inside of them. Lists can be defined within [ and ], or by using list(). For the purpose of learning lists (and many other purposes in general), it doesn't really matter if you use [ ] or list() to define a list.
Examples:
List of strings
list_var = ['value 1', 'value 2', 'value 2']
List of numbers
list_var2 = [1, 5, 7, 2]
List of strings using list()
list_var3 = list('value 1', 'value 2')
In questa pagina del sito puoi guardare il video online Python Programming, Lists della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Quick Programming Concepts 16 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 442 volte e gli è piaciuto 8 spettatori. Buona visione!