×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Matthew J_
Added: Jun 22, 2022 1:20 PM
Modified: Jun 22, 2022 1:27 PM
Views: 7
Tags: no tags
  1. # while loop
  2. n = 0
  3.  
  4. while n < 10:
  5.         print(n)
  6.  
  7.         if n == 4 or n == 5 or n== 9:
  8.                 print("Break")
  9.                 break
  10.  
  11.         n += 1