From 19e76c862c917798315b8eafa23d4c13379c6ce0 Mon Sep 17 00:00:00 2001 From: rishitsai-arch <241149459+rishitsai-arch@users.noreply.github.com> Date: Mon, 25 May 2026 11:23:11 +0530 Subject: [PATCH 1/3] Fix wording in explanation of 'pass' statement i noticed a small mistake here: Corrected the wording from 'after semicolon' to 'after a colon' for clarity. as it may cause confusion to beginners. --- 10_Day_Loops/10_loops.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10_Day_Loops/10_loops.md b/10_Day_Loops/10_loops.md index 9192e059d..a14e8cd1a 100644 --- a/10_Day_Loops/10_loops.md +++ b/10_Day_Loops/10_loops.md @@ -375,7 +375,7 @@ else: ### Pass -In python when statement is required (after semicolon), but we don't like to execute any code there, we can write the word _pass_ to avoid errors. Also we can use it as a placeholder, for future statements. +In python when statement is required (after a colon), but we don't like to execute any code there, we can write the word _pass_ to avoid errors. Also we can use it as a placeholder, for future statements. **Example:** From e9f6801ec293d97033110ea16b7a36a9eef5cce1 Mon Sep 17 00:00:00 2001 From: rishitsai-arch <241149459+rishitsai-arch@users.noreply.github.com> Date: Mon, 25 May 2026 15:44:09 +0530 Subject: [PATCH 2/3] Update list comprehension example with complete range in line no 73 the output was incomplete pls consider this change i changed it to the complete output as otherwise it may cause confusion --- 13_Day_List_comprehension/13_list_comprehension.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13_Day_List_comprehension/13_list_comprehension.md b/13_Day_List_comprehension/13_list_comprehension.md index df44d92ed..4da29e0ca 100644 --- a/13_Day_List_comprehension/13_list_comprehension.md +++ b/13_Day_List_comprehension/13_list_comprehension.md @@ -70,7 +70,7 @@ print(squares) # [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100] # It is also possible to make a list of tuples numbers = [(i, i * i) for i in range(11)] -print(numbers) # [(0, 0), (1, 1), (2, 4), (3, 9), (4, 16), (5, 25)] +print(numbers) # [(0, 0), (1, 1), (2, 4), (3, 9), (4, 16), (5, 25), (6, 36), (7, 49), (8, 64), (9, 81), (10, 100)]] ``` From 644838c820a470f58f7511f9611716e31af67ca7 Mon Sep 17 00:00:00 2001 From: rishitsai-arch <241149459+rishitsai-arch@users.noreply.github.com> Date: Mon, 25 May 2026 15:57:15 +0530 Subject: [PATCH 3/3] Fix output of positive even numbers example Updated the output of the positive even numbers filter example to reflect correct values. pls consider this thanks --- 13_Day_List_comprehension/13_list_comprehension.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13_Day_List_comprehension/13_list_comprehension.md b/13_Day_List_comprehension/13_list_comprehension.md index 4da29e0ca..8b9ea016a 100644 --- a/13_Day_List_comprehension/13_list_comprehension.md +++ b/13_Day_List_comprehension/13_list_comprehension.md @@ -90,7 +90,7 @@ print(odd_numbers) # [1, 3, 5, 7, 9, 11, 13, 15, 17, 19] # Filter numbers: let's filter out positive even numbers from the list below numbers = [-8, -7, -3, -1, 0, 1, 3, 4, 5, 7, 6, 8, 10] positive_even_numbers = [i for i in numbers if i % 2 == 0 and i > 0] -print(positive_even_numbers) # [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] +print(positive_even_numbers) #[4, 6, 8, 10] # Flattening a two dimensional array list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]