Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def BeginningInfo():
- print("L - Sademete lisamine andmebaasi.")
- print("M - Andmebaasis oleva sademe muutmine.")
- print("P - Andmebaasis asuvate sademete kuvamine.")
- print("E - Programmi sulgemine.")
- def AmOfRain():
- Indik=("Indikaator")
- Temp=("20")
- Fixation=("Fikseerige sade kujul ["+ Indik +"] ["+ Temp +"] (C): ")
- print(Fixation+input(Indik)+input(Temp))
- if not ("[")Indik.isalpha()("]"):
- AmOfRain()
- if not ("[")Temp.isnumeric()("]"):
- AmOfRain()
- if ("[")Indik.isalpha()("]") and ("[")Temp.isnumeric()("]"):
- print("Sade fikseeritud!")
- def EnterChoice():
- Choice=input("Sisestage soovitud valik (L, M, P, E): ")
- if Choice!=("L") and Choice!=("M") and Choice!=("P") and Choice!=("E"):
- EnterChoice()
- if Choice==("L"):
- AmOfRain()
- BeginningInfo()
- EnterChoice()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement