fork download
  1. # your code goes here
  2. def lista(loopy):
  3. print('executou func', loopy)
  4. return [1,2,3,4,5]
  5.  
  6. count = 0
  7. while count < len(lista('while')):
  8. count += 1
  9.  
  10. for i in lista('for'):
  11. pass
  12.  
  13. print('ciclo for acabou, i =', i)
  14.  
Success #stdin #stdout 0.04s 9336KB
stdin
Standard input is empty
stdout
executou func while
executou func while
executou func while
executou func while
executou func while
executou func while
executou func for
ciclo for acabou, i = 5