fork download
  1. def trzy(kwota):
  2. ile = 0
  3. while kwota >= 5:
  4. kwota = kwota - 5
  5. ile+= 1
  6. print("5")
  7.  
  8. while kwota >= 2:
  9. kwota = kwota - 2
  10. ile+= 1
  11. print("2")
  12.  
  13. while kwota >= 1:
  14. kwota = kwota - 1
  15. ile+= 1
  16. print("1")
  17. return ile
  18.  
  19. wynik = trzy(7)
  20. print(wynik)
Success #stdin #stdout 0.01s 7112KB
stdin
Standard input is empty
stdout
5
2
2