Bank Management System Project in Python [Source Code]

Do you want to work on a bank management system project in Python but don’t know where to start? Well, you don’t need to worry anymore as our project will help you. This article will help you learn about a beginner-level Python project where you create a bank management system. We have the source code, too, so you can easily use it for your project. However, we recommend that you understand the code first before you copy-paste it; otherwise, the project wouldn’t be useful. 

Why Work on Python Projects?

There are many benefits to working on Python projects. Here are some of the most prominent reasons why you should work on Python projects:

1. Good for Testing Skills

First and foremost, working on a project helps you test your knowledge. It lets you see how much you have learned about the programming language. Many times, a person thinks that they can perform many tasks but discovers the opposite after working on a few projects. You’ll get to discover your strengths and weaknesses after working on a project, which is undoubtedly a huge advantage. 

2. Learning New Things

When you work on a new project, you learn a lot of new things. First, you get to learn about the industry-specific concepts the project covers. Moreover, you make mistakes, experiment, and try new things when working on a project, which will substantially expand your knowledge base. When you’d work on the bank management system project in Python we have discussed in this article, you’ll get to learn many new things. 

3. Understanding Application

Knowing the theory and basic concepts of a programming language are great benefits, but they aren’t sufficient. If you want to use Python professionally, you must know Python’s applications and how to use it for the same. This is where working on projects has the most advantage. Different projects require you to use different skills, ensuring that you get to understand the applications of varying Python sections and concepts. 

4. Enhance Your Portfolio

Another great advantage of working on a project is that it enhances your portfolio. Recruiters are always on the lookout for professionals who have experience in using their skills. With projects, you get to highlight the same. They are proof that you understand the relevant concepts thoroughly and can use them in your tasks. 

Our Bank Management System Project in Python

Our bank management system project in Python is a console that performs the essential functions of banking software. It lets the user create a new account, view the account’s records, make deposits and withdrawals, and edit account details. It’s quite a simple project, so even if you don’t have any experience in working on Python projects, you can quickly get started with this one. 

You’d notice that our bank management system doesn’t have any login section. We have left it out as it would have made things more complicated and it would have no longer remained a beginner-friendly project. If you’re interested, you can learn about that and add a login window to this solution yourself. 

Code for the Bank Management System Project in Python

Here’s the code for different sections of our bank management system project in Python:

Database Table and Variables

1

2

3

4

5

6

7

8

9

NamesOFClients = [‘Sriram K’, ‘Yoursha Stevens’, ‘Harsh Datta’, ‘Dilip Guru’, ‘Nitin Deshmukh’, ‘Hello Primer’, ‘Abhishek Kumar’]

ClientPins = [‘00010’, ‘0008’, ‘0003’, ‘0006’, ‘00012’, ‘0009’, ‘00015’]

ClientBalances = [60000, 80000, 100000, 500000, 700000, 800000, 70000]

ClientDeposition = 0

ClientWithdrawal = 0

ClientBalance = 0

disk1 = 5

disk2 = 8

u = 0

Primary Module 

1

2

3

4

5

6

7

8

9

10

print(“************************************************************”)

print(“========== WELCOME TO KPY BANKING SYSTEM ==========”)

print(“************************************************************”)

print(“========== (a). Open New Client Account ============”)

print(“========== (b). The Client Withdraw a Money ============”)

print(“========== (c). The Client Deposit a Money ============”)

print(“========== (d). Check Clients & Balance ============”)

print(“========== (e). Quit ============”)

print(“************************************************************”)

EnterLetter = input(“Select a Letter from the Above Box menu : “)

Client Registration Account

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

if EnterLetter == “a”:

print(” Letter a is Selected by the Client”)

NumberOfClient = eval(input(“Number of Clients : “))

u = u + NumberOfClient

if u > 7:

print(“\n”)

print(“Client registration exceed reached or Client registration too low”)

u = u – NumberOfClient

else:

while disk1 <= u:

name = input(“Write Your Fullname : “)

NamesOFClients.append(name)

pin = str(input(“Please Write a Pin to Secure your Account : “))

ClientPins.append(pin)

ClientBalance = 0

ClientDeposition = eval(input(“Please Insert a Money to Deposit to Start an Account : “))

ClientBalance = ClientBalance + ClientDeposition

ClientBalances.append(ClientBalance)

print(“\nName=”, end=” “)

print(NamesOFClients[disk2])

print(“Pin=”, end=” “)

print(ClientPins[disk2])

print(“Balance=”, “P”, end=” “)

print(ClientBalances[disk2], end=” “)

disk1 = disk1 + 1

disk2 = disk2 + 1

print(“\nYour name is added to Client Table”)

print(“Your pin is added to Client Table”)

print(“Your balance is added to Client Table”)

print(“—-New Client account created successfully !—-“)

print(“\n”)

print(“Your Name is Available on the Client list now : “)

print(NamesOFClients)

print(“\n”)

print(“Note! Please remember the Name and Pin”)

print(“========================================”)

mainMenu = input(” Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_”)

Client Withdrawal Process (When Client Makes a Withdrawal)

elif EnterLetter == “b”:<br> v = 0<br> print(” letter b is Selected by the Client”)<br> while v &lt; 1:<br> w = -1<br> name = input(“Please Insert a name : “)<br> pin = input(“Please Insert a pin : “)<br> while w &lt; len(NamesOFClients) – 1:<br> w = w + 1<br> if name == NamesOFClients[w]:<br> if pin == ClientPins[w]:<br> v = v + 1<br> print(“Your Current Balance:”, “P”, end=” “)<br> print(ClientBalances[w], end=” “)<br> print(“\n”)<br> ClientBalance = (ClientBalances[w])<br> ClientWithdrawal = eval(input(“Insert value to Withdraw : “))<br> if ClientWithdrawal &gt; ClientBalance:<br> deposition = eval(input(<br> “Please Deposit a higher Value because your Balance mentioned above is not enough : “))<br> ClientBalance = ClientBalance + deposition<br> print(“Your Current Balance:”, “P”, end=” “)<br> print(ClientBalance, end=” “)<br> ClientBalance = ClientBalance – ClientWithdrawal<br> print(“-\n”)<br> print(“—-Withdraw Successfully!—-“)<br> ClientBalances[w] = ClientBalance<br> print(“Your New Balance: “, “P”, ClientBalance, end=” “)<br> print(“\n\n”)<br> else:<br> ClientBalance = ClientBalance – ClientWithdrawal<br> print(“\n”)<br> print(“—-Withdraw Successfully!—-“)<br> ClientBalances[w] = ClientBalance<br> print(“Your New Balance: “, “P”, ClientBalance, end=” “)<br> print(“\n”)<br> if v &lt; 1:<br> print(“Your name and pin does not match!\n”)<br> break<br> mainMenu = input(” Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_”)

Client Deposit Process (When Client Makes a Deposit)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

elif EnterLetter == “c”:

print(“Letter c is selected by the Client”)

x = 0

while x &lt; 1:

w = -1

name = input(“Please Insert a name : “)

pin = input(“Please Insert a pin : “)

while w &lt; len(NamesOFClients) – 1:

w = w + 1

if name == NamesOFClients[w]:

if pin == ClientPins[w]:

x = x + 1

print(“Your Current Balance: “, “P”, end=” “)

print(ClientBalances[w], end=” “)

ClientBalance = (ClientBalances[w])

print(“\n”)

ClientDeposition = eval(input(“Enter the value you want to deposit : “))

ClientBalance = ClientBalance + ClientDeposition

ClientBalances[w] = ClientBalance

print(“\n”)

print(“—-Deposit successful!—-“)

print(“Your New Balance: “, “P”, ClientBalance, end=” “)

print(“\n”)

if x &lt; 1:

print(“Your name and pin does not match!\n”)

break

mainMenu = input(” Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_”)

Client and Balance Check

1

2

3

4

5

6

7

8

9

10

11

elif EnterLetter == “d”:

print(“Letter d is selected by the Client”)

w = 0

print(“Client name list and balances mentioned below : “)

print(“\n”)

while w &lt;= len(NamesOFClients) – 1:

print(“-&gt;.Customer =”, NamesOFClients[w])

print(“-&gt;.Balance =”, “P”, ClientBalances[w], end=” “)

print(“\n”)

w = w + 1

mainMenu = input(” Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_ “)

Exiting the Banking System

1

2

3

4

5

6

7

8

9

10

11

elif EnterLetter == “e”:

print(“letter e is selected by the client”)

print(“Thank you for using our banking system!”)

print(“\n”)

print(“Thank You and Come again”)

print(“God Bless”)

break

else:

print(“Invalid option selected by the Client”)

print(“Please Try again!”)

mainMenu = input(“Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_”)

How To Run This Project

You will need Pycharm to run this project. After entering the code, you only need to run the project, and the module would start working. 

Conclusion

Working on projects is undoubtedly a fantastic experience. They teach you many things. We hope you liked our bank management system project in Python. You can tell us by dropping a comment below. On the other hand, you can share this project with anyone else who might find it useful as well. 

I hope you will learn a lot while working on these python projects. If you are curious about learning data science to be in the front of fast-paced technological advancements, check out upGrad & IIIT-B’s PG Diploma in Data Science and upskill yourself for the future.

Prepare for a Career of the Future

UPGRAD AND IIIT-BANGALORE'S PG DIPLOMA IN DATA SCIENCE
LEARN MORE

Leave a comment

Your email address will not be published. Required fields are marked *

×