Could anyone explain me the inner loop, like how its iterating with the outer loop? Thanks! | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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