rakesh =["accountnumber = 2345","password=rakesh","balance = 2546474","cashdeposit=0"]
mukesh = ["accountnumber = 7564","password=mukesh","cashdeposit=0"]
lokesh = ["accountnumber = 9807","password=lokesh","cashdeposit=0"]
raju = ["accountnumber = 5678","password=raju","cashdeposit=0"]
def bank():
print("Welcome user")
accnum = input("Please enter your account number: ")
if accnum == rakesh[0]:
accpass = input("Enter your password")
if accpass == rakesh[1]:
print("welcome rakesh")
input("What type of transaction you want to perform:Balance Inquiry,Cash Deposit,Cash Withdrawal,Loan")
if "balance Inquiry":
print(rakesh[2])
elif "cash deposit" :
cash_deposit = input("enter amount to deposit cash")
rakesh[2] = rakesh[2] + cash_deposit
elif "cash withdrawal" :
cash_withdrawal = input("enter cash to withdraw")
rakesh[2]= rakesh[2] - cash_withdrawal
elif "Loan":
maxloan= 50/100 *int(rakesh[2])
loanamount = input("Enter loan amount")
if loanamount>maxloan:
print("invalid loan amount")
bank()
can anyone tell me what is wrong in this code pls
Answers
Answered by
0
Answer:
the question is too big we can't read please explain the question in short or else keep it for mere points
Similar questions