Mar 1, 2022
Your first remark return from a loop works with print() but not otherwise cause using a return inside of a loop will break it and exit the function even if the iteration is still not finished.
Your first remark return from a loop works with print() but not otherwise cause using a return inside of a loop will break it and exit the function even if the iteration is still not finished.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Max Kleiner's professional environment is in the areas of OOP, UML and coding - among other things as a trainer, developer and consultant.