How to FLATTEN a list of lists with LIST COMPREHENSIONS

preview_player
Показать описание
In this video you learn how to flatten a matrix with list comprehensions and see how to break down a regular for-loop and even nested for-loops to make this task easier for you in the future.

C H A P T E R S:
0:20 Single dimension list comprehension
1:07 Replace for-loop with list comprehension
1:49 Use a nested for-loop to flatten a matrix
2:29 Replace nested for-loop with list comprehension

M Y O N L I N E T R A I N I N G

#flattenlist #listcomprehensions #python
Рекомендации по теме
Комментарии
Автор

Hey, this is my first time leaving a comment, but I just wanted to say you're an amazing teacher!

heinrich
Автор

what IDE is that? Where are you executing this code?

checher