forked from logenkain/cig-cost
Add $ symbol to prices
This commit is contained in:
parent
82d15a69ef
commit
3b622e0158
@ -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")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user