fork(1) download
  1. nodes = [1,2,3]
  2.  
  3. def traverse():
  4. for node in nodes:
  5. yield node
  6.  
  7.  
  8. for node in traverse():
  9. print(node)
  10.  
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
1
2
3