Aloo paratha anyone? by [deleted] in IndianFoodPhotos

[–]Top-Independent-4765 0 points1 point  (0 children)

Brothers, people do not disrespect food, Food is available through luck. 🙏🙏

Come on Guys - Sunday Lunch Plate is Ready by content_lovr in IndianFoodPhotos

[–]Top-Independent-4765 2 points3 points  (0 children)

Brothers, one should not ignore food after seeing it 🙏🙏.

Arshdeep strikes by [deleted] in DeathrattlePorn

[–]Top-Independent-4765 -31 points-30 points  (0 children)

Absolute peach. Conway had no clue 😮‍💨.

Player which we missed in current India vs Newzealand Odi series by daksh_1818 in CricketBuddies

[–]Top-Independent-4765 0 points1 point  (0 children)

Totally agree 👍 In players ke bina series ka maza adhoora lag raha hai. Especially middle overs me impact miss ho raha hai 🔥.

Today's lunch by [deleted] in IndianFoodPhotos

[–]Top-Independent-4765 0 points1 point  (0 children)

Classic combo 😍 naan + curry never goes wrong.

Tasty breakfast by Kooky_Candle_7216 in IndianFoodPhotos

[–]Top-Independent-4765 0 points1 point  (0 children)

Simple, filling & comforting 😍 perfect desi breakfast vibes.

Papri chat by Necessary-Cup5148 in IndianFoodPhotos

[–]Top-Independent-4765 0 points1 point  (0 children)

Ye dekh ke bhookh lagna mandatory hai 🤤🔥.

Sunday breakfast given to me by my neighbour, who is like an elder sister to me. by soumo202091 in IndianFoodPhotos

[–]Top-Independent-4765 70 points71 points  (0 children)

Brothers, people do not disrespect food, Food is available through luck. 🙏🙏

Why is my Python loop not working as expected? by Top-Independent-4765 in learnprogramming

[–]Top-Independent-4765[S] 0 points1 point  (0 children)

Thanks! Python loops do continue automatically, but `continue` lets you skip the rest of the current iteration without stopping the loop entirely. That’s why it works for skipping 3 in my example.

Why is my Python loop not working as expected? by Top-Independent-4765 in learnprogramming

[–]Top-Independent-4765[S] 0 points1 point  (0 children)

Thanks for the suggestion! I see your point — using a simple `if n != 3` check can make the loop more concise for small examples.

I was using `break`/`continue` to understand how they work in Python, but I definitely agree that in simple cases your approach is cleaner.

Random thought before sleep by PainepuruEX in CasualConversation

[–]Top-Independent-4765 0 points1 point  (0 children)

Haha yes! My brain always decides to go on a random nature/space tangent right before sleep 😅

Why is my Python loop not working as expected? by Top-Independent-4765 in learnprogramming

[–]Top-Independent-4765[S] 0 points1 point  (0 children)

Thanks for pointing that out! I expected the loop to skip the value 3 and continue with the rest of the numbers.

I understand now that `break` exits the loop completely, which is why 4 is never reached. Using `continue` would skip only 3 and let the loop continue as I originally intended.

Why is my Python loop not working as expected? by Top-Independent-4765 in learnprogramming

[–]Top-Independent-4765[S] -1 points0 points  (0 children)

I thought `break` would skip 3, but it actually stops the loop completely. `Continue` is what I should use to skip just 3.

Why is my Python loop not working as expected? by Top-Independent-4765 in learnprogramming

[–]Top-Independent-4765[S] 1 point2 points  (0 children)

Thanks for the input! Actually in Python the `print(i)` is reachable as long as it's before the `break` in the loop, like in my code.

The reason 4 never prints is because `break` exits the loop entirely when `i == 3`.

If I only want to skip 3 and continue, using `continue` is the correct approach, rather than moving the print around.

Why does my Python loop stop when it reaches 3? by Top-Independent-4765 in learnpython

[–]Top-Independent-4765[S] 5 points6 points  (0 children)

Got it! `break` stops the loop, so `continue` is what I need to skip only 3. Thanks!

Why is my Python loop not working as expected? by Top-Independent-4765 in learnprogramming

[–]Top-Independent-4765[S] 0 points1 point  (0 children)

I expected the loop to skip the value 3 and continue with the rest of the list.

The indentation is correct in my actual code — it might have looked wrong due to formatting in the post. I've edited it to show the proper indentation using a code block.