0% found this document useful (0 votes)
33 views18 pages

Banking Program

The document describes a banking system project created in Python. The Python code allows users to create bank accounts, view account balances, deposit and withdraw money, and change account details. The project uses an external database file to permanently store user information.

Uploaded by

Inchara Revanna
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)
33 views18 pages

Banking Program

The document describes a banking system project created in Python. The Python code allows users to create bank accounts, view account balances, deposit and withdraw money, and change account details. The project uses an external database file to permanently store user information.

Uploaded by

Inchara Revanna
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
You are on page 1/ 18

BANKING IN PYTHON

ST.THOMAS ENGLISH MEDIUM SCHOOL, MYSURU (Affiliated to


CBSE, New Delhi, Affiliation No. 830085, School Code-45067

DEPARTMENT OF COMPUTER SCIENCE

CERTIFICATE

This is to certify that the project titled banking in python is a


bonafide work carried out by Inchara .R of Standard XII of St.
Thomas English Medium School, Mysuru, submitted in partial
fulfilment of the requirements for the AISSCE certificate from
C.B.S.E under our guidance during the year 2020-2021.

Principal Teacher–In–Charge

Submitted for the AISSCE Examination held in the year 2020-2021


at St.Thomas English Medium School, Mysuru

Internal Examiner External Examiner


Date: Date:
ACKNOWLEDGEMENT

First I take this opportunity to thank the Almighty God, who


really enabled me to do this project successfully. I would also
like to express my gratitude to all those who have guided me. I
acknowledge my heartfelt thanks to the Principal Mr. Lintomon
T. A, and my teacher Mrs. Seema Ma’am for her valuable
guidance and encouragement. I thank all my teachers and
friends who have helped me to complete this task
successfully.

I bow down to my parents for their inspiration and prayers


without which this project might not have been a success
DECLARATION

I hereby declare that this project entitled banking in python


is a bonafide record of the project work done by me, during the
course of my studies in the academic year 2020-2021.This
report has not been previously formed the basis for the award
of any certificate, diploma or other similar title to me by any
other board or society.

Name: Inchara. R

Place: ST Thomas School , Mysuru

Date:2-10-2023
Contents
1.What is python ?

2.Uses of python

3.Python help in banking system

4.Synopsis for banking system

5.Source code for the banking system

6.Output

7.Conclusion

8.Bibliography
WHAT IS PYTHON ?

Python is an interpreted, object-oriented, high-level programming


language with dynamic semantics. Its high-level built in data
structures, combined with dynamic
typing and dynamic binding, make
it very attractive for Rapid
Application Development, as well
as for use as a scripting or glue
language to connect existing
components together. Python's
simple, easy to learn syntax
emphasizes readability and therefore reduces the cost of program
maintenance. Python supports modules and packages, which
encourages program modularity and code reuse. The Python
interpreter and the extensive standard library are available in
source or binary form without charge for all major platforms, and
can be freely distributed.

Often, programmers fall in love with Python because of the


increased productivity it provides. Since there is no compilation
step, the edit-test-debug cycle is incredibly
fast. Debugging Python programs is easy:
a bug or bad input will never cause a
segmentation fault. Instead, when the
interpreter discovers an error, it raises an
exception. When the program doesn't
catch the exception, the interpreter prints a
stack trace. A source level debugger
allows inspection of local and global variables, evaluation of
arbitrary expressions, setting breakpoints, stepping through the
code a line at a time, and so on. The debugger is written in Python
itself, testifying to Python's introspective power. On the other hand,
often the quickest way to debug a program is to add a few print
statements to the source: the fast edit-test-debug cycle makes this
simple approach very effective.

USES OF PYTHON

Python is commonly used for developing websites and software, task


automation, data analysis, and data visualisation. Since it’s relatively easy
to learn, Python has been adopted by many non-programmers, such as
accountants and scientists, for a variety of everyday tasks, like organising
finances.

Data analysis and machine learning

Python has become a staple in data science, allowing data analysts and
other professionals to use the language
to conduct complex statistical
calculations, create data visualisations,
build machine learning algorithms,
manipulate and analyse data, and
complete other data-related tasks.

Python can build various data


visualisations, like line and bar graphs,
pie charts, histogrammes, and 3D plots. Python also has many libraries
that enable coders to write programs for data analysis and machine
learning more quickly and efficiently, like TensorFlow and Keras.

Web development

Python is often used to develop the back end of a website or


application—the parts that a user doesn’t see. Python’s role in web
development includes sending data to and from servers, processing data
and communicating with databases, routing URLs, and ensuring security.
Python offers several frameworks for web
development. Commonly used ones include
Django and Flask.

Some web development jobs that use Python


include back-end engineers, full-stack engineers,
Python developers, software engineers, and
DevOps engineers.

Automation or scripting

If you perform a task repeatedly, you can work more efficiently by


automating it with Python. Writing code used to build these automated
processes is called scripting. In the coding world,
automation can be used to check for errors across
multiple files, convert files, execute simple maths,
and remove duplicates in data.

Relative beginners can even use Python to


automate simple tasks on the computer—such as
renaming files, finding and downloading online
content, or sending emails or texts at desired
intervals.

Software testing and prototyping

Python can aid in software development tasks


like build control, bug tracking, and testing. With
Python, software developers can automate
testing for new products or features. Some
Python tools used for software testing include
Green and Requestium.
USES OF PYTHON IN BANKING

Python comes in handy in a broad range of applications. Here are


the most popular uses of the language in the financial services
industry.

​ Analytics tools.
​ Python is commonly used in quantitative finance to process
and analyze massive datasets, such as financial data. Pandas
is a library that simplifies the process of data visualization and
allows for complex statistical analyses. Python-based
solutions are equipped with powerful machine learning
algorithms that enable predictive analytics, which is extremely
important to all financial services providers, thanks to libraries
like Scikit or PyBrain
​ . Examples of such products: Iwoca, Holvi

Banking software

​ Python is also used by financial institutions to provide


payment systems and online
banking applications. Venmo is a
great example of a mobile banking
app that has evolved into a full-fledged social networking site.

​ Python is useful for designing ATM software that improves
payment processing because of its simplicity and versatility.
Examples of such products: Affirm, Robinhood, Stripe, Zopa

​ Cryptocurrency

​ Every business that sells cryptocurrencies requires tools to
analyze cryptocurrency market data and make predictions.
Anaconda, a Python data science platform, aids developers in
obtaining cryptocurrency prices, analyzing them, and
visualizing financial data.
As a result, Python is used
by the vast majority of web
applications that deal with
bitcoin analysis.
​ Examples of such products:
Dash, Enigma, ZeroNet, koine

​ Building a stock trading strategy with Python

​ The stock market generates
enormous amounts of
financial data, which
necessitates extensive research. That's when Python comes
in handy. It can be used by developers to build solutions that
discover the best stock trading methods and provide practical,
predictive analytical insights into the state of specific markets.
Algorithmic trading in fintech products is an example of a use
case. Examples of such products: Quantopian, Quantconnect,
Zipline, Backtrader, eBay

SYNOPSIS OF THE BANKING


SYSTEM

● Python was used to create the Bank Management System


project. There is a database file and a Python script named
“main.py” in the project file. ● This is a simplistic system with a
user-friendly interface. It is possible to create a new account, view a
list of account holders, check the account’s balance, close the
account, and alter account details. ● Such a login system is absent
from this modest project. This indicates that the person will utilise all
of these capabilities without difficulty. Because it is so easy to use,
he or she may quickly examine all of the bank account details.
Python code for banking systems is easy and simple to use.
● A user can open an account in the Bank Management System by
providing their name and account number, selecting a checking or
savings account, and entering an initial deposit of any amount
● Users can deposit or withdraw money from their accounts by
typing their account number and the required amount. In addition,
the user has the option to view the account balance, which displays
the account number and the balance.
● In addition, they have access to a list of all users with accounts. In
addition, users can adjust their account type and details if they so
want.
● The clear dashboard of this user-friendly bank management
system makes it easy to manage bank accounts and transactions.
This project is primarily concerned with CRUD. Using an external
database connection file, user information is permanently stored in
this little project
. ● If Python is not installed on your computer, the project will not
execute. This simple Console-based application was designed with
inexperienced users in mind.
● This is the source code for the banking management system
Features:
● New account creation
● Deposition and withdrawal of amount
● Balance Enquiry
● View option to the List of Account holder
● Account closure

SOURCE CODE FOR THE BANKING


SYSTEM

class Bank:
def __init__(self, name):
self.name = name
self.accounts = []

def add_account(self, account):


self.accounts.append(account)
class Bank:

def __init__(self, name):

self.name = name

self.accounts = []

def add_account(self, account):

self.accounts.append(account)

class Bank:

def __init__(self, name):

self.name = name

self.accounts = []

def add_account(self, account):

self.accounts.append(account)

def main():

bank_name = input('Enter bank name: ')

bank = Bank(bank_name)

print('Bank', bank_name, 'created successfully')

while True:

print('1. Create Account')


print('2. Deposit')

print('3. Withdraw')

print('4. Exit')

choice = int(input('Enter your choice: '))

if choice == 1:

acc_number = input('Enter account number: ')

acc_owner = input('Enter account owner name: ')

acc_balance = float(input('Enter opening balance: '))

account = Account(acc_number, acc_owner, acc_balance)

bank.add_account(account)

print('Account created successfully')

elif choice == 2:

acc_number = input('Enter account number: ')

amount = float(input('Enter amount to deposit: '))

account = find_account(bank.accounts, acc_number)

if account:

account.deposit(amount)

print('Deposit successful')

else:

print('Account not found')


elif choice == 3:

acc_number = input('Enter account number: ')

amount = float(input('Enter amount to withdraw: '))

account = find_account(bank.accounts, acc_number)

if account:

account.withdraw(amount)

print('Withdrawal successful')

else:

print('Account not found')

elif choice == 4:

print('Thank you for using the Bank Management System')

break

else:

print('Invalid choice')

def find_account(accounts, number):

for account in accounts:

if account.number == number:

return account

return None
if __name__ == '__main__':

main()

OUTPUT FOR THE PROGRAM

CONCLUSION
Reality proves that Python is one of the most popular programming
languages. It is Python’s clear programming syntax, extensive
libraries, and powerful debugging tools that make it an ideal choice
for development projects in different fields, including finance.
Python’s expansive use cases in finance have been greatly
beneficial to the industry by streamlining processes, analyzing data,
optimizing portfolios, automating tasks, and building sophisticated
software solutions. Therefore, its demand is expected to remain
strong for years to come.
Nowadays, businesses have their respective reasons for choosing
this language over others for their development projects, and they
also have their own motives to outsource Python development
services to a reliable software development company. The right
experts will help you build the best-in-class software applications
and websites that meet the demands of your users.

BIBLOGRAPHY
1. The Times of India. "Python is TIOBE's Programming Language of the

Year 2021,

https://timesofindia.indiatimes.com/business/india-business/python-is-tiobe

s-programming-language-of-the-year-2021/articleshow/88853232.cms."

Accessed August 21, 2023.

2. Statista. "Preferred programming language for techies to upskills India

2020,

https://www.statista.com/statistics/1112542/india-programming-languages-

most-preferred-by-it-professionals/." Accessed August 21, 2023.

3. JetBrains. "Python Programming - The State of Developer Ecosystem in

2021, https://www.jetbrains.com/lp/devecosystem-2021/python/." Accessed

August 21, 2023.

4. Sumit arora Computer science for class 11

You might also like