diff --git a/budget_summary.py b/budget_summary.py index d4cd9e2..dc6860c 100755 --- a/budget_summary.py +++ b/budget_summary.py @@ -26,7 +26,7 @@ print("{: <12} {:.2f}".format("Total (no rent):", sum(amount for (amount, category) in lines if category != "Rent"))) categories = sorted(set(category for (amount, category) in lines)) print() -OTHER = ("Food", "Grocery", "Luxury") +OTHER = ("Grocery", "Luxury", "Good", "Restaurant") for category in categories: if category not in OTHER: print("{: <12} {:.2f}".format(category+":", sum(amount for (amount, c) in lines if category == c))) diff --git a/roll b/roll index 8fb6859..f112919 100755 --- a/roll +++ b/roll @@ -18,7 +18,7 @@ if m: else: modifier = 0 result = modifier - for i in range(sides): + for i in range(dice): result += random.randint(1, sides) if modifier >= 0: s = "{}d{}+{}".format(dice, sides, modifier)