# Bank Management System
# Class 11 Python Project (Using List Only)
accounts = []
def create_account():
acc_no = int(input("Enter Account Number: "))
name = input("Enter Account Holder Name: ")
balance = float(input("Enter Initial Balance: "))
[Link]([acc_no, name, balance])
print("Account created successfully!\n")
def deposit():
acc_no = int(input("Enter Account Number: "))
for acc in accounts:
if acc[0] == acc_no:
amount = float(input("Enter Amount to Deposit: "))
acc[2] =acc[2]+ amount
print("Amount deposited successfully!\n")
return
print("Account not found!\n")
def withdraw():
acc_no = int(input("Enter Account Number: "))
for acc in accounts:
if acc[0] == acc_no:
amount = float(input("Enter Amount to Withdraw: "))
if amount <= acc[2]:
acc[2] =acc[2]- amount
print("Please collect your cash.\n")
else:
print("Insufficient balance!\n")
return
print("Account not found!\n")
def check_balance():
acc_no = int(input("Enter Account Number: "))
for acc in accounts:
if acc[0] == acc_no:
print("Account Holder Name:", acc[1])
print("Current Balance:", acc[2], "\n")
return
print("Account not found!\n")
while True:
print("====== BANK MANAGEMENT SYSTEM ======")
print("1. Create Account")
print("2. Deposit Money")
print("3. Withdraw Money")
print("4. Check Balance")
print("5. Exit")
choice = input("Enter your choice (1-5): ")
if choice == "1":
create_account()
elif choice == "2":
deposit()
elif choice == "3":
withdraw()
elif choice == "4":
check_balance()
elif choice == "5":
print("Thank you for using Bank Management System")
break
else:
print("Invalid choice! Try again.\n")