Advertisement
VF-

Untitled

VF-
Nov 13th, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. bash-5.1$ cat simpley.py
  2. import math
  3. def jarmu():
  4. maxi=-math.inf
  5. rsz=''
  6. while True:
  7. seb= int(input("Sebesseg: "))
  8. if seb == 0:
  9. break
  10. if seb> maxi:
  11. maxi = seb
  12. rsz= input("Rendszam: ")
  13. return rsz
  14.  
  15. print(jarmu())
  16.  
  17. bash-5.1$ python3 simpley.py
  18. Sebesseg: 110
  19. Rendszam: ABC-123
  20. Sebesseg: 90
  21. Sebesseg: 0
  22. ABC-123
  23.  
  24. bash-5.1$
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement