Advertisement
semsem_elazazy

deposite_withdraw

May 11th, 2023
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. def dep():
  2.              
  3.          
  4. def deposite_withdraw( n  ,  op):
  5.      amt = 0
  6.      file = open("data.txt", "r+")
  7.      for line in file:
  8.           l = line.split('\t')
  9.           if Id == l[0] :
  10.                if (op == 1 ):
  11.                     print("-----------------------------------------------")
  12.                     print(" Enter amount to be deposited  : ")
  13.                     dep(n , amt )
  14.                if (op == 2 ):
  15.                     print("-----------------------------------------------")
  16.                     print(" Enter amount to be Withdrawed : ")
  17.                     withdraw( n , amt )
  18.          
  19.                print("\n   Done :) ")          
  20.                
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement