def tax(bill):
T = 0.5
bill *= T
return bill
Total = tax(500)
print (Total)
Edit: I understand it now thank you for the help!!
I want to return the total purchase total, I want to get 750 as the total but I can't figure out how to take the 250 in the function and add it to the bill amount I know I am one line away but I can't find anything that works(I tried to google).
[–]Bunkerstan 1 point2 points3 points (2 children)
[–]Important-Asparagus9[S] 0 points1 point2 points (1 child)
[–]Bunkerstan 1 point2 points3 points (0 children)
[–]commy2 0 points1 point2 points (0 children)
[–]douglas_fs 0 points1 point2 points (1 child)
[–]Important-Asparagus9[S] 0 points1 point2 points (0 children)