Post

hemabe
hemabe@hemabe·
@PythonPr [1] Don't oversee the "break".
English
0
0
0
483
Prem Prakash
Prem Prakash@4EverPrem·
@PythonPr [1]. After first iteration of if inside the for loop, there comes break statement, therefore, one iteration is completed printing [1]
English
0
0
0
346
Prince Monga
Prince Monga@Prince_monga7·
@PythonPr The output is B. [1] because the loop skips even numbers using continue and adds the first odd number (1) to the list before stopping with break. Can you see how break affects the loop's flow? It’s a neat way to control which elements get processed!"
English
0
0
0
66
1cedi
1cedi@manuelonsoh1·
@PythonPr The loop ends after processing only the first number (1) Correct answer is b. [1]
English
0
0
0
409
SUN
SUN@nilly97615315·
@PythonPr [1] , 1 % 2 == 0 is False (1 is odd): 1 is appended to some_numbers Then break is executed, which exits the loop immediately
English
0
0
0
72
Kristine
Kristine@koko_pops101·
@PythonPr D - the condition states if the number is divisible by 2 with no reminder, then append the number to the new list some_numbers.
English
0
0
0
101
Paylaş