Day 23: List comprehension (nested)
Stopped blogging for a while…
Clarifying this topic that I’ve been confused for sometime:
list_of_list = [[1,2,3],[4,5,6],[7,8,9]]
#Flatten the list of list
[y for x in list_of_list for y in x]
learninka.hashnode.dev1 min read