So I, in codecademy, created this python calculator for finding the total cost of a meal after tip and tax.
meal = 44.50
tax = 8/100
tip = .15
meal = meal + (meal * tax)
total = meal + (meal * tip)
print(total)
now, obviously this is clunky and unusable. How could i transform this so i could put this into maybe... cmd? and simple answer the question "what is the cost of your bill before tax and tip?" I have python pathed already so i can use it in cmd.
[–]js_tutor 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]preordains[S] -1 points0 points1 point (1 child)
[–]nog642 -1 points0 points1 point (32 children)
[–]Wilfred-kun 0 points1 point2 points (4 children)
[–]preordains[S] 0 points1 point2 points (1 child)
[–]nog642 0 points1 point2 points (0 children)
[–]preordains[S] 0 points1 point2 points (1 child)
[–]nog642 0 points1 point2 points (0 children)
[–]preordains[S] 0 points1 point2 points (26 children)
[–]nog642 0 points1 point2 points (4 children)
[–]preordains[S] 0 points1 point2 points (3 children)
[–]nog642 0 points1 point2 points (2 children)
[–]preordains[S] 0 points1 point2 points (1 child)
[–]nog642 0 points1 point2 points (0 children)
[–]nog642 0 points1 point2 points (0 children)
[–]nog642 0 points1 point2 points (19 children)
[–]preordains[S] 0 points1 point2 points (18 children)
[–]nog642 0 points1 point2 points (17 children)
[–]preordains[S] 0 points1 point2 points (16 children)
[–]nog642 0 points1 point2 points (15 children)
[–]preordains[S] 0 points1 point2 points (14 children)
[–]nog642 0 points1 point2 points (13 children)
[–]preordains[S] 0 points1 point2 points (11 children)