Back to Browse

2. Create an Expense tracker using Python

364 views
Jul 4, 2025
29:26

expenses = [] while True: choice = input("\nAdd expense? (yes/no): ").lower() if choice == "yes": item = input("Enter item: ") amount = float(input("Enter amount: ")) expenses.append((item, amount)) else: break total = sum(amount for _, amount in expenses) print("\nExpenses:") for item, amount in expenses: print(f"{item}: ₹{amount}") print("Total:", total) #Python #ExpenseTracker #DataEngineer #SoftwareEngineer #Microsoft #Coding #PythonProjects #FinanceApp #Automation #100DaysOfCode #DevCommunity #PythonDeveloper

Download

1 formats

Video Formats

360pmp432.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

2. Create an Expense tracker using Python | NatokHD