update messages v0.0.2

This commit is contained in:
TropiiDev 2025-04-16 10:10:29 -04:00
parent 36e8e59bf1
commit 752eccacb9

View File

@ -52,7 +52,7 @@ def calculate_balance() -> None:
total_costs += user_items[i].price
balance = round(user_budget - total_costs, 2)
print(f"Total cost of all items: ${total_costs}")
if balance == 0:
print("You have enough money for all your items.")
time.sleep(2)
@ -84,7 +84,7 @@ while True:
print(f"Current budget: {user_budget}")
elif choice == "3":
item_name = input("Enter the item name: ")
item_price = float(input(f"Enter the price for {item_name}: "))
item_price = float(input(f"Enter the expense for {item_name}: "))
add_item(item_name, item_price)
elif choice == "4":