update messages v0.0.2
This commit is contained in:
parent
36e8e59bf1
commit
752eccacb9
4
main.py
4
main.py
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user