I don't understand what im doing wrong i need help



Hi Dan,

Seems like you're hard coding the values instead of using the variables - take another look at the instructions.

Instructions: Assign the variable total to the sum of meal + meal * tip on line 8.

You assigned the variable total a value of 47.50375, but the value of meal, on line 3 is something else. Start from there.


Thanks man i was stuck here and it was frustrating


Let me know if you figure it out, otherwise I can assist further.

After you stare at code for a while, it's quite easy to oversee things. Sometimes it helps to get up and take a short walk, :smile:


Here is the answer i got. It worked. (i did not found it, a friend did. Just want to share, could be useful)

total = meal * (1 + tax)