Post

Python Developer
Python Developer@PythonDvz·
You call yourself a Python coder? 🐍 Prove it — solve this in the comments ⚡👇 Best coding language?
Python Developer tweet media
English
25
12
94
11.4K
PyBerry Tech 🐍🍓
PyBerry Tech 🐍🍓@PyBerryTech·
@Python_Dv Option A - loop breaked 😎 The else block runs only if the loop finishes normally (without hitting break).
English
0
0
0
1.1K
Jimmy Fikes
Jimmy Fikes@akajim·
C. None of these options cover what happens. There is a for loop that begins by checking if 1==3. Since this is False, “loop ended” is printed. The loop continues but since 2 does not equal 3, the loop continues with “loop ended”. When 3 is checked, the condition is True, “loop breaked” is printed and the loop breaks.
English
0
0
0
812
Python Tech
Python Tech@PythonTech43716·
@Python_Dv A) loop breaked Because after the if statement loop is stopped.
English
0
0
0
482
DanTheTechMan
DanTheTechMan@dantechenth·
@Python_Dv The infamous for-else. Break kills the loop? Else dies with it. Output: 'loop breakeed' with the typo intact. Answer: A.
English
0
0
0
256
Olatide_enoch
Olatide_enoch@Crafted1638·
@Python_Dv A) loop breaked The loop is broken because of "break" under the if statement.
English
0
0
0
110
Shindou Hikaru 🇸🇬 🇮🇩
Shindou Hikaru 🇸🇬 🇮🇩@everylittlejing·
@Python_Dv For num in nums artinya yg di dalam list akan di ulang. Case, Num 1 ga sama dengan 3. Num 2 ga sama dengan 3. Num 3 SAMA dengan 3 = true Jika num = 3 lalu mencetak loop breaked Dan terjadi break, maka proses loop terhenti. Karena td ada BREAK maka else ga perlu. Jawaban A.
Indonesia
0
0
0
121
Paylaş