Loops

  1. Loops: for-in and while
  2. for-in loop on strings
  3. for-in loop on list
  4. for-in loop on range
  5. Iterable, iterator
  6. for in loop with early end using break
  7. for in loop skipping parts using continue
  8. for in loop with break and continue
  9. while loop
  10. Infinite while loop
  11. While with complex expression
  12. While with break
  13. While True
  14. Duplicate input call
  15. Eliminate duplicate input call
  16. do while loop
  17. while with many continue calls
  18. Break out from multi-level loops
  19. Exit vs return vs break and continue
  20. Exercise: Print all the locations in a string
  21. Exercise: Number guessing game
  22. Exercise: Count unique characters
  23. Exercise: Convert for-loop to while-loop
  24. Solution: Print all the locations in a string
  25. Solution 1 for Number Guessing
  26. Solution 2 for Number Guessing (x)
  27. Solution 3 for Number Guessing (s)
  28. Solution for Number Guessing (debug)
  29. Solution for Number Guessing (move)
  30. Solution for Number Guessing (multi-game)
  31. Solution: Count unique characters
  32. Solution: Convert for-loop to while-loop