Advertisement
richric

Untitled

Nov 30th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. def BeginningInfo():
  2. print("L - Sademete lisamine andmebaasi.")
  3. print("M - Andmebaasis oleva sademe muutmine.")
  4. print("P - Andmebaasis asuvate sademete kuvamine.")
  5. print("E - Programmi sulgemine.")
  6.  
  7. def AmOfRain():
  8. Indik=("Indikaator")
  9. Temp=("20")
  10. Fixation=("Fikseerige sade kujul ["+ Indik +"] ["+ Temp +"] (C): ")
  11. print(Fixation+input(Indik)+input(Temp))
  12. if not ("[")Indik.isalpha()("]"):
  13. AmOfRain()
  14. if not ("[")Temp.isnumeric()("]"):
  15. AmOfRain()
  16. if ("[")Indik.isalpha()("]") and ("[")Temp.isnumeric()("]"):
  17. print("Sade fikseeritud!")
  18.  
  19.  
  20. def EnterChoice():
  21. Choice=input("Sisestage soovitud valik (L, M, P, E): ")
  22. if Choice!=("L") and Choice!=("M") and Choice!=("P") and Choice!=("E"):
  23. EnterChoice()
  24. if Choice==("L"):
  25. AmOfRain()
  26.  
  27.  
  28.  
  29.  
  30.  
  31. BeginningInfo()
  32. EnterChoice()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement