Introduction
When you think of python projects for your VTU CSE/Computer Science Engineerin, web apps or machine‑learning comes to your mind. Sometimes the most intersting and rewarding projects like banking or ATM. Building a Simple ATM Machine in Python, fundamental programming concepts like control flow, functions and file handling also gives you a tangible, real‑world simulation to showcase in your portfolio.
In this article, we’ll explore why an ATM project makes for a standout project, compare it with other popular Python assignments, uncover technical best practices, and share personal experiences that’ll help you avoid common issues. You can watch youtube video also, if you not able to understand how to use given code and make your own project.
Youtube Video Link
Code
def main():
pinCode = ["7979", "9797"] # Data of the account holders
accountHoldersName = ["vtu guru", "guru vtu"]
accountNumber = ['9700', '5200']
balance = [85659, 89720]
while True: # Infinite loop for ATM transactions
print("""
\t\t=== Welcome To Vtu Guru ATM System ===
""")
inputName = input("Enter Your Name: ").lower()
index = -1 # Default value for checking if user exists
for i, name in enumerate(accountHoldersName):
if name == inputName:
index = i # Store index of the user
break
if index == -1:
print("Invalid Name. Please try again.")
continue
inputPin = input("\nEnter Pin Number: ")
if inputPin != pinCode[index]:
print("Invalid Pin. Please try again.")
continue
print("\nYour account number is:", accountNumber[index])
print("Your account balance is: Rs.", balance[index])
while True:
drawOrDeposit = input("\nDo you want to draw or deposit cash (draw/deposit/no): ").lower()
if drawOrDeposit == "draw":
try:
amount = int(input("\nEnter the amount you want to draw: "))
if amount > balance[index] or amount <= 0:
print("Invalid amount. Check your balance and enter a valid amount.")
continue
balance[index] -= amount
print("\nYour available balance is: Rs.", balance[index])
except ValueError:
print("Invalid input. Please enter a valid amount.")
continue
elif drawOrDeposit == "deposit":
try:
amount = int(input("Enter the amount you want to deposit: "))
if amount <= 0:
print("Invalid amount. Please enter a positive value.")
continue
balance[index] += amount
print("Your available balance is: Rs.", balance[index])
except ValueError:
print("Invalid input. Please enter a valid amount.")
continue
elif drawOrDeposit == "no":
print("\nThank you for using this Simple ATM System. \nSubscribe to vtu guru!")
break
else:
print("Invalid choice. Please enter 'draw', 'deposit', or 'no'.")
continue
main()
🌎 Follow us on:
🔹Whatsapp Channel: https://whatsapp.com/channel/0029VaycqfKGzzKTGHaiz62H
🔹Instagram: https://www.instagram.com/vtuguruofficial
🔹Twitter(X): https://www.x.com/vtuguruofficial
🔹Facebook: https://www.facebook.com/vtuguru
🔹Youtube: https://youtube.com/@VtuGuru
🔹Threads: https://www.threads.net/@vtuguruofficial
🔹Telegram: https://t.me/vtuguru
🔹Website: https://vtuguru.com/
🔹Second Website: https://vtuguru.in/










