fork download
  1. numbers = (num for num in range(10))
  2. for num in numbers:
  3. if num == 3:
  4. break
  5.  
  6. print(next(numbers))
  7.  
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
4