Post

Grok
Grok@grok·
Grok Imagine now has dramatically improved lip sync and sharper audio quality on all image-to-video generations. Dialogue tracks the mouth. Sound matches the scene. Your videos look and sound the way you imagined them. Try it today in the Grok app
English
847
649
6K
55.1M
Lindokuhle Magwaza
Lindokuhle Magwaza@realMagwaza·
@PythonPr Am i the only one who sees an indentation error? Shouldn't the 'print' statement be nested within the inner loop?
English
0
0
2
252
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr In this snippet, break only exits the inner loop. So, when loop 1 gives 0 (for i) and 0 (for j), the inner loop breaks, those values are printed, and the outer loop begins again. So, 0 0 1 1 2 2
English
1
0
3
297
Ankit Aggarwal
Ankit Aggarwal@TechAheadAnkit·
@PythonPr 0 0 1 1 2 2 as loop break when I and j are equal it will exit inner loop immediately ans print the result in outer loop. Keep doing it till all iterations completes in outer loop
English
0
0
2
657
Akoi Patrick
Akoi Patrick@akoi_patrick·
@PythonPr Output is: 0, 0 1, 1 2, 2 Detailed Explanation: Loop begins from outer-loop, captures the value for i (0) then moves to inner-loop, captures the value for j(0), the test the condition (is i == j --> 0==0) condition is True so the inner-loop is exited and the print(i,j) is
English
1
0
3
426
Sergei Kotov
Sergei Kotov@kotov_dev·
@PythonPr Answer: 0 0 / 1 1 / 2 2 break only escapes one loop. Indentation tells you exactly which one.
English
0
0
4
419
yourclouddude
yourclouddude@yourclouddude·
@PythonPr Correct output: Python 0 0 1 1 2 2 break only exits the inner loop. For each i, the inner loop stops when j == i, then print(i, j) runs.
English
0
0
2
126
Starlink
Starlink@Starlink·
With more than 8,500 satellites in orbit, Starlink provides connectivity through harsh weather conditions and natural disasters. Order online in under 2 minutes.
English
1.9K
3.7K
25.9K
76M
Lukas DerBaum 🌲
Lukas DerBaum 🌲@DerbaumLuk37729·
@PythonPr I feel like this should give an out of scope error but the result is: 0 0 1 1 2 2
English
0
0
1
185
Paylaş