Add $ symbol to prices

This commit is contained in:
Logen Kain 2020-09-14 16:36:56 -04:00
parent 82d15a69ef
commit 3b622e0158

View File

@ -27,7 +27,7 @@ while True:
break break
print("Your cigarettes cost", format(cost/20, '.2f'), "each") print("Your cigarettes cost $" + format(cost/20, '.2f'), "each")
print() print()
print("You smoke: ") print("You smoke: ")
@ -39,8 +39,8 @@ print(math.ceil(20 * packs * 365), "per year")
print() print()
print("This costs you: ") print("This costs you: ")
print(format(cost * packs, '.2f'), "Per day") print("$" + format(cost * packs, '.2f'), "Per day")
print(format(cost * packs * 7, '.2f'), "per week") print("$" + format(cost * packs * 7, '.2f'), "per week")
print(format((cost * packs * 365)/12, '.2f'), "per month") print("$" + format((cost * packs * 365)/12, '.2f'), "per month")
print(format(cost * packs * 365, '.2f'), "per year") print("$" + format(cost * packs * 365, '.2f'), "per year")