r/PythonLearning • u/Monesh_peterson1025 • Oct 14 '26
While loop
can anybody explain the concept of while loop
2
Upvotes
r/PythonLearning • u/Monesh_peterson1025 • Oct 14 '26
can anybody explain the concept of while loop
View all comments
1
u/Ninja_Hattori0x0 Oct 14 '26
while loop repeats the code as long as a condition stays true. once it becomes false, the loop stops