python list comprehension. easiest way to creat new list from previous list. #python #shorts

preview_player
Показать описание
Music by Lakey inspired

Lists are one of the four built-in data structures in Python. Other data structures that you might know are tuples, dictionaries, and sets. A list in Python is different from, for example, int or bool, in the sense that it's a compound data type: you can group values in lists. These values don't need to be of the same type: they can be a combination of boolean, String, integer, float values.

List literals are a collection of data surrounded by brackets, and the elements are separated by a comma. The list is capable of holding various data types inside it, unlike arrays.

List Comprehension

List comprehension offers a shorter syntax when you want to create a new list based on the values of an existing list.
Рекомендации по теме
Комментарии
Автор

Music is from: "lakey inspired", the one who made the music lets people use their songs but only if credited, i dont see any credits here

Adamdaking
Автор

ok Não entendi nada mas um lugar light

tubitubi