0% found this document useful (0 votes)
2 views2 pages

Class 11 Comp SC Project

The document outlines a simple Bank Management System implemented in Python using lists. It includes functionalities to create accounts, deposit and withdraw money, and check account balances. The system operates in a loop, allowing users to select options until they choose to exit.

Uploaded by

vanshika21109
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Class 11 Comp SC Project

The document outlines a simple Bank Management System implemented in Python using lists. It includes functionalities to create accounts, deposit and withdraw money, and check account balances. The system operates in a loop, allowing users to select options until they choose to exit.

Uploaded by

vanshika21109
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

# 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")

You might also like