fork download
  1. text = 'abcdefghij'
  2. t = 10
  3. for i in text:
  4. print(i)
  5. t -= 1
  6. print(t)
  7. if t == 5:
  8. break
  9.  
  10. #https://pt.stackoverflow.com/q/444294/101
Success #stdin #stdout 0.02s 9052KB
stdin
Standard input is empty
stdout
a
9
b
8
c
7
d
6
e
5