Python Tricks #2: Convert 2D List to 1D in ONE Line

preview_player
Показать описание
Learn how to flatten a 2D list into a 1D list using just a single line of Python code! Perfect for beginners and pros who love clean code.

#Python #Coding #Shorts
Рекомендации по теме
Комментарии
Автор

Just convert it into numpy array, flatten it and reconvert it into list 😅😂

SupremePrem-wd
welcome to shbcf.ru