test_while.py 120 B

123456789
  1. i = 1
  2. while i <= 5:
  3. print i
  4. i += 1
  5. if i == 3:
  6. break
  7. else:
  8. print 'Hit the While/Else Statement!'