Comment your answers below! 👇

Python_Dv's tweet image. Comment your answers below! 👇

Answer: (A) loop breaked The for loop in Python can have an optional else block. This else block is executed only if the loop completes without encountering a break statement. In the provided code, the loop iterates through the list [1, 2, 3, 4, 5]. When the value of


Stream, call, game, and work in even the most remote locations. Order online in minutes


Error, the indentation of the Else statement


Error


A) loop breaked The condition num == 3 says that when the num finds 3 in the list it should print out “loop breaked” so it goes through num == 1 would be print out “loop ended”, num ==2 would also print out “loop ended” When it finally meets the condition num == 3 it breaks


Loop goes 1 → 2 → 3. At 3, it prints "loop breaked" and stops. Else never runs.


Error orphan else


It writes "loop breaked" but it is in fact broke, lol.


A loop breaked


Welcome to Kinlaig! Get the new Highlands Fishing Expansion now.


C) Indentation error


A)loop breaked


Ans: I’m one of 93%


A) loop breaked


Nano Contracts passed the @HalbornSecurity Audit with flying colors. Zero critical issues. Zero high-risk vulnerabilities. When we say Hathor is built differently, we mean built securely, by design.


A. loop breaked. Reason is because when the iteration gets to num == 3, the loop would break and print that block ONLY.


Loop breaked


Loop breaked


Loop breaked The condition num==3 is reached and then print and break, never getting to the else block


United States Trends
Loading...

Something went wrong.


Something went wrong.