Skip to content

Commit 3e6f31e

Browse files
authored
Update 13_list_comprehension.md
1 parent b8ed0ee commit 3e6f31e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

13_Day_List_comprehension/13_list_comprehension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ numbers = [-8, -7, -3, -1, 0, 1, 3, 4, 5, 7, 6, 8, 10]
9292
positive_even_numbers = [i for i in range(21) if i % 2 == 0 and i > 0]
9393
print(positive_even_numbers) # [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
9494

95-
# Flattening a three dimensional array
95+
# Flattening a two dimensional array
9696
list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
9797
flattened_list = [ number for row in list_of_lists for number in row]
9898
print(flattened_list) # [1, 2, 3, 4, 5, 6, 7, 8, 9]

0 commit comments

Comments
 (0)