filmov
tv
Python 033 - Slicing lists and comprehensions

Показать описание
List slicing is where you only use part of a list (or tuple). These slices can be used on their own or as part of a FOR loop.
List comprehension allows us to create a more readable FOR loop - but only if there is only one command (and that command returns a result).
List comprehension allows us to create a more readable FOR loop - but only if there is only one command (and that command returns a result).