ATM Program In Python With Source Code

The ATM Program In Python is a fully functional console-based application developed in Python that covers all of the features that IT students and computer-related courses will require for their college projects or assignments. These can be helpful articles and projects that you are looking for. This ATM Program is a basic console-based ATM emulator that allows you to monitor your account balances easily. It has all of the necessary features. There is no database connection, and no external text or other files are used to save user data in this little project. Everything, including the pin code and the amount, is set in the source code. This Python ATM Program is quite useful, and the concept and logic of the project are simple to grasp. The source code is open source and free to use. Simply scroll down and click the download option.

Watch the whole video to see how to run the ATM Program In Python, from start to finish!

ATM Program In Python : Project Output

ATM Program
ATM Program

What Is ATM Program In Python?

The Python ATM Project is a computer-based program that makes managing a bank account’s funds simple. It enables users to check account balances, make cash withdrawals or deposits, print a statement of account activities or transactions, and even purchase stamps.

Importance of ATM Machine Program In Python?

This Python ATM Machine Program is important because it enables customers to conduct quick self-service activities such as deposits, cash withdrawals, bill payments, and account transfers.

How To Write A Simple ATM Program In Python

The atm Python program will provide you with valuable experience with classes and objects, functions, while loops, modules, and conditional statements in general. It’s a wonderful question to use as a practice question because it covers practically all of the programming fundamentals you’ll need to know as a beginning.

This application simulates the operation of the Bank of Bhutan’s ATM (Automatic Teller Machine). As a result, the application satisfies the following ATM requirements:

  • Creating an account
  • Look at your account details
  • Balance check
  • Amount on Deposit
  • Withdrawn Amount
  • Exit with a transaction receipt in your hand.

Benefits of ATM Program

  • Anytime, Anywhere, Access to Hard Cash – The best thing about ATMs is that you can get cash from them at any time. Before 1967, there was only one way to get cash, and you only had a short amount of time to do it. You had to go to the nearest bank. This meant that people who lived in faraway places had to go all the way to the nearest town. People could only get their money out of the bank until 3 p.m. ATMs make it possible for anyone, anywhere, and at any time of day or night to get cash. There are even two ATMs in Antarctica.
  • ATMs help people get access to money – In low-income countries where not many people use banks, ATMs can be used to give people banking services. Interactive ATMs that can give out cash and take deposits help people learn more about money and make it easier for people in remote areas to use formal financial services. Two-thirds of the people in the world depend on cash. Many of these people don’t have bank accounts because they live in developing countries. So, you can’t understate how important ATMs are to helping people get access to money. So one benefit of ATMs is that they help people get access to money.
  • ATMs can do a lot of different things – ATMs offer a wide range of services these days, such as card less transactions, cash deposits, balance inquiries, person-to-person payments, and cashing checks. Also, Wells Fargo, Bank of America, and JP Morgan Chase have made it possible to use their ATMs without a card. In some countries, ATMs sell tickets to movies and flights. ATMs are very useful because they can do so many different things.

About the Project : ATM Program In Python With Source Code

The ATM Program In Python is a console-based application written in the Python programming language. The project is open source, and it was made for novices who wish to learn Python. This Python Code For ATM Machine can run in console mode. It has a number of features, including Account Statement, Withdrawal, Depositing Amount, and Pin Change. The user must first provide an existing username, and if the username matches, the system will proceed to the following step, which is to ask for a pin number. When a user completes all of these sign-in procedures, he or she will be able to utilize all of the capabilities. It’s far too simple to utilize; he or she can verify their own account statements.

Project Details and Technology : ATM Program In Python

Project Name:ATM Program In Python
Abstract:This ATM Program In Python is a Python project that aims to help students with their college project or assignment. This is a start-up project in Python for students that want to build and practice computer programming.
Language/s Used:Python
Python version (Recommended):3.8 or 3.9
Type:Console Application
Developer:Source Code Hero
Updates:0
ATM Program In Python With Source Code – Project Information

The code given below is the full source code on ATM Program In Python

Installed Libraries!

#!/usr/bin/python
import getpass
import string
import os

Complete Source Code!

#!/usr/bin/python
import getpass
import string
import os

# creatinga lists of users, their PINs and bank statements
users = ['user1', 'user2', 'user3']
pins = ['1234', '2222', '3333']
amounts = [1000, 2000, 3000]
count = 0
# while loop checks existance of the enterd username
print("****************************************************************************")
print("*                                                                          *")
print("*                   Welcome to IT SOURCECODE ATM SYSTEM                    *")
print("*                                                                          *")
print("****************************************************************************")
while True:
	user = input('\nENTER USER NAME: ')
	user = user.lower()
	if user in users:
		if user == users[0]:
			n = 0
		elif user == users[1]:
			n = 1
		else:
			n = 2
		break
	else:
		print('----------------')
		print('****************')
		print('INVALID USERNAME')
		print('****************')
		print('----------------')

# comparing pin
while count < 3:
	print('------------------')
	print('******************')
	pin = input('PLEASE ENTER PIN: ')
	print('******************')
	print('------------------')
	if pin.isdigit():
		if user == 'user1':
			if pin == pins[0]:
				break
			else:
				count += 1
				print('-----------')
				print('***********')
				print('INVALID PIN')
				print('***********')
				print('-----------')
				print()

		if user == 'user2':
			if pin == pins[1]:
				break
			else:
				count += 1
				print('-----------')
				print('***********')
				print('INVALID PIN')
				print('***********')
				print('-----------')
				print()
				
		if user == 'user3':
			if pin == pins[2]:
				break
			else:
				count += 1
				print('-----------')
				print('***********')
				print('INVALID PIN')
				print('***********')
				print('-----------')
				print()
	else:
		print('------------------------')
		print('************************')
		print('PIN CONSISTS OF 4 DIGITS')
		print('************************')
		print('------------------------')
		count += 1
	
# in case of a valid pin- continuing, or exiting
if count == 3:
	print('-----------------------------------')
	print('***********************************')
	print('3 UNSUCCESFUL PIN ATTEMPTS, EXITING')
	print('!!!!!YOUR CARD HAS BEEN LOCKED!!!!!')
	print('***********************************')
	print('-----------------------------------')
	exit()

print('-------------------------')
print('*************************')
print('LOGIN SUCCESFUL, CONTINUE')
print('*************************')
print('-------------------------')
print()
print('--------------------------')
print('**************************')	
print(str.capitalize(users[n]), 'welcome to ATM')
print('**************************')
print('----------ATM SYSTEM-----------')
# Main menu
while True:
	#os.system('clear')
	print('-------------------------------')
	print('*******************************')
	response = input('SELECT FROM FOLLOWING OPTIONS: \nStatement__(S) \nWithdraw___(W) \nLodgement__(L)  \nChange PIN_(P)  \nQuit_______(Q) \nType The Letter Of Your Choices: ').lower()
	print('*******************************')
	print('-------------------------------')
	valid_responses = ['s', 'w', 'l', 'p', 'q']
	response = response.lower()
	if response == 's':
		print('---------------------------------------------')
		print('*********************************************')
		print(str.capitalize(users[n]), 'YOU HAVE ', amounts[n],'EURO ON YOUR ACCOUNT.')
		print('*********************************************')
		print('---------------------------------------------')
		
	elif response == 'w':
		print('---------------------------------------------')
		print('*********************************************')
		cash_out = int(input('ENTER AMOUNT YOU WOULD LIKE TO WITHDRAW: '))
		print('*********************************************')
		print('---------------------------------------------')
		if cash_out%10 != 0:
			print('------------------------------------------------------')
			print('******************************************************')
			print('AMOUNT YOU WANT TO WITHDRAW MUST TO MATCH 10 EURO NOTES')
			print('******************************************************')
			print('------------------------------------------------------')
		elif cash_out > amounts[n]:
			print('-----------------------------')
			print('*****************************')
			print('YOU HAVE INSUFFICIENT BALANCE')
			print('*****************************')
			print('-----------------------------')
		else:
			amounts[n] = amounts[n] - cash_out
			print('-----------------------------------')
			print('***********************************')
			print('YOUR NEW BALANCE IS: ', amounts[n], 'EURO')
			print('***********************************')
			print('-----------------------------------')
			
	elif response == 'l':
		print()
		print('---------------------------------------------')
		print('*********************************************')
		cash_in = int(input('ENTER AMOUNT YOU WANT TO LODGE: '))
		print('*********************************************')
		print('---------------------------------------------')
		print()
		if cash_in%10 != 0:
			print('----------------------------------------------------')
			print('****************************************************')
			print('AMOUNT YOU WANT TO LODGE MUST TO MATCH 10 EURO NOTES')
			print('****************************************************')
			print('----------------------------------------------------')
		else:
			amounts[n] = amounts[n] + cash_in
			print('----------------------------------------')
			print('****************************************')
			print('YOUR NEW BALANCE IS: ', amounts[n], 'EURO')
			print('****************************************')
			print('----------------------------------------')
	elif response == 'p':
		print('-----------------------------')
		print('*****************************')
		new_pin = str(getpass.getpass('ENTER A NEW PIN: '))
		print('*****************************')
		print('-----------------------------')
		if new_pin.isdigit() and new_pin != pins[n] and len(new_pin) == 4:
			print('------------------')
			print('******************')
			new_ppin = str(getpass.getpass('CONFIRM NEW PIN: '))
			print('*******************')
			print('-------------------')
			if new_ppin != new_pin:
				print('------------')
				print('************')
				print('PIN MISMATCH')
				print('************')
				print('------------')
			else:
				pins[n] = new_pin
				print('NEW PIN SAVED')
		else:
			print('-------------------------------------')
			print('*************************************')
			print('   NEW PIN MUST CONSIST OF 4 DIGITS \nAND MUST BE DIFFERENT TO PREVIOUS PIN')
			print('*************************************')
			print('-------------------------------------')
	elif response == 'q':
		exit()
	else:
		print('------------------')
		print('******************')
		print('RESPONSE NOT VALID')
		print('******************')
		print('------------------')

This ATM Program In Python also includes a downloadable Project With Source Code for free, just find the downloadable source code below and click to start downloading.

By the way, if you are new to python programming and you don’t have any idea what Python IDE to use, I have here a list of Best Python IDE for Windows, Linux, Mac OS for you. Additionally, I also have here How to Download and Install Latest Version of Python on Windows.

To start executing a ATM Program In Python, make sure that you have installed Python in your computer.

ATM Program In Python : Steps on how to run the project

Time needed: 5 minutes.

These are the steps on how to run ATM Program In Python

  • Step 1: Download Source Code

    First, find the downloadable source code below and click to start downloading the source code file.
    Leave Management System Project In Python Download Button

  • Step 2: Extract File

    Next, after finished to download the file, go to file location and right click the file and click extract.
    Leave Management System Project In Python Extract File

  • Step 3: Open Project Path and Open CMD (Command Prompt).

    In order for you to run the project, you just need to open the project path and type CMD. The first thing you need to do is type py atm.py in the command prompt. After that, just wait for a few seconds to load the system.
    ATM Program In Python Execute Project

Download Source Code below!

Summary

This Article is the way to enhance and develop our skills and logic ideas which is important in practicing the python programming language which is most well known and most usable programming language in many company.

Inquiries

If you have any questions or suggestions about ATM Program In Python please feel free to leave a comment below.

Leave a Comment

Your email address will not be published.

%d bloggers like this: