Could anyone explain me the inner loop, like how its iterating with the outer loop? Thanks! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Could anyone explain me the inner loop, like how its iterating with the outer loop? Thanks!

for num in range(Lower, Upper +1): if num > 1: for i in range (2,num): if num % i ==0: break else: print(num)

10th Jan 2024, 3:10 PM
GINA
GINA - avatar
1 Answer
+ 3
Please avoid copy pasting other users' questions and also note that before asking your question, google it, and then search it in "Q&A Discussion" to avoid asking the same question https://www.sololearn.com/Discuss/3260124/?ref=app
10th Jan 2024, 3:28 PM
🇮🇱 Radin Masiha 🇮🇱
🇮🇱 Radin Masiha 🇮🇱 - avatar