def depositAndWithdraw(num1,num2):
file = [Link]("[Link]”)
if [Link] ():
infile = open('[Link]','rb')
mylist = [Link](infile)
[Link]()
[Link]('[Link]')
for item in mylist :
if [Link] == num1 :
if num2 == 1 :
amount = int(input("Enter the amount to deposit : "))
[Link] += amount
print("Your account is updted")
elif num2 == 2 :
amount = int(input("Enter the amount to withdraw : "))
if amount <= [Link] :
[Link] -=amount
else :
print("You cannot withdraw larger amount")
else :
print("No records to Search")
outfile = open('[Link]','wb')
[Link](mylist, outfile)
[Link]()
[Link]('[Link]', '[Link]')