Advertisement
Guest User

Untitled

a guest
May 26th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. import io
  2. import sys
  3. import os
  4.  
  5. # windows
  6. clear = lambda: os.system('cls')
  7. #linux
  8. clear = lambda: os.system('clear')
  9.  
  10. print("Welcome to your diary!!!")
  11.  
  12. while(input != "5\n"):
  13. print("Please choose one of the folowing actions")
  14. print("1) Add notation")
  15. print("2) Get notation")
  16. print("3) Delete")
  17. print("4) Update")
  18. print("5) GetAll")
  19. print("6) Exit")
  20.  
  21. input = sys.stdin.readline()
  22.  
  23. clear()
  24.  
  25. if(input == "1\n"):
  26. print("Input your notation in format [mm/dd/yyyy:hr/min/seconds] {space} your actual notation")
  27. inputSTR = sys.stdin.readline()
  28. ''' proccesInput '''
  29. sys.stdin.readline()
  30.  
  31. if(input == "2\n"):
  32. print("Input your request in format [mm/dd/yyyy:hr/min/seconds]")
  33. inputSTR = sys.stdin.readline()
  34. ''' proccesInput '''
  35. sys.stdin.readline()
  36.  
  37. if(input == "3\n"):
  38. print("Input your request in format [mm/dd/yyyy:hr/min/seconds]")
  39. inputSTR = sys.stdin.readline()
  40. ''' proccesInput '''
  41. sys.stdin.readline()
  42.  
  43. if(input == "4\n"):
  44. print("Input your notation in format [mm/dd/yyyy:hr/min/seconds] {space} your actual notation")
  45. inputSTR = sys.stdin.readline()
  46. ''' proccesInput '''
  47. sys.stdin.readline()
  48.  
  49. if(input == "5\n"):
  50. ''' proccesInput '''
  51. sys.stdin.readline()
  52.  
  53. clear()
  54.  
  55. print("Good by!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement