Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("**Welcome**")
- t="y"
- while t=='y':
- print("Enter the number of opertion you want")
- print("1-Write on the file")
- print("2-Read from the file")
- print("3-search on the file")
- print("4-Copy the file")
- print("5-length of the file")
- print("6-update on the file")
- print("7-Delete from the file")
- s=int(input("Enter the number of operation you want to do "))
- match s :
- case 1:
- c="y"
- while c=='y':
- #your code
- c=input("Enter another record? (y/n)")
- t=input("Do you want to do anothe opertion (y/n):")
- case 2:
- #your code
- t = input("Do you want to do anothe opertion (y/n):")
- case 3:
- # your code
- t = input("Do you want to do anothe opertion (y/n):")
- case 4:
- # your code
- t = input("Do you want to do anothe opertion (y/n):")
- case 5:
- # your code
- t = input("Do you want to do anothe opertion (y/n):")
- case 6:
- # your code
- t = input("Do you want to do anothe opertion (y/n):")
- case 7:
- # your code
- t = input("Do you want to do anothe opertion (y/n):")
- print("**THE END**")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement