Module 4 tips and meals


#1

Reassign meal on line 7!

meal = 44.50
tax = 0.0675
tip = 0.15

meal = (meal * tax) + (meal * tip) + meal


#2

what is wrong with my code


#3

Hello, @jacobp56!
All you had to do was :

meal = meal + meal * tax

Best regards,
g4be


#4

Why does the solution go on the left hand side. Why can't sides be interchangeable?


#5

@systemninja61598: Python, and other languages that have this feature, were built with this so trying to do:

2 + 2 = x

Other than:

x = 2 + 2

Will result into an error.
I don't think there's any other explanation for such, if so I'll edit this post.

Best regards,
G4be


#6

Ah okay, that's what I was stuck on the whole time haha


#7

No problem, Safwaan! Glad to help!