Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-5.1$ cat simpley.py
- import math
- def jarmu():
- maxi=-math.inf
- rsz=''
- while True:
- seb= int(input("Sebesseg: "))
- if seb == 0:
- break
- if seb> maxi:
- maxi = seb
- rsz= input("Rendszam: ")
- return rsz
- print(jarmu())
- bash-5.1$ python3 simpley.py
- Sebesseg: 110
- Rendszam: ABC-123
- Sebesseg: 90
- Sebesseg: 0
- ABC-123
- bash-5.1$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement