Advertisement
sherry_ahmos

Untitled

May 11th, 2022
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.27 KB | None | 0 0
  1. print("**Welcome**")
  2. t="y"
  3. while t=='y':
  4.     print("Enter the number of opertion you want")
  5.     print("1-Write on the file")
  6.     print("2-Read from the file")
  7.     print("3-search on the file")
  8.     print("4-Copy the file")
  9.     print("5-length of the file")
  10.     print("6-update on the file")
  11.     print("7-Delete from the file")
  12.     s=int(input("Enter the number of operation you want to do "))
  13.     match s :
  14.         case 1:
  15.             c="y"
  16.             while c=='y':
  17.                 #your code
  18.                 c=input("Enter another record? (y/n)")
  19.             t=input("Do you want to do anothe opertion (y/n):")
  20.         case 2:
  21.             #your code
  22.             t = input("Do you want to do anothe opertion (y/n):")
  23.         case 3:
  24.             # your code
  25.             t = input("Do you want to do anothe opertion (y/n):")
  26.         case 4:
  27.             # your code
  28.             t = input("Do you want to do anothe opertion (y/n):")
  29.         case 5:
  30.             # your code
  31.             t = input("Do you want to do anothe opertion (y/n):")
  32.         case 6:
  33.             # your code
  34.             t = input("Do you want to do anothe opertion (y/n):")
  35.         case 7:
  36.             # your code
  37.             t = input("Do you want to do anothe opertion (y/n):")
  38. print("**THE END**")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement