I was hoping someone could help me with an ultra-noob question, I’m learning to code for a future career and Python is the best most used language for my profession as a result here I am!
It’s my 3rd day learning so yes, I’m an ultra-noob! :’) I started the second lesson of python fundamentals and I’ve been asked to start to learn how to create a calculator.
Given one of the exercises as shown here: https://gyazo.com/02cbb2f400a3c0f864b0263bfd4e95f4
I’m really confused!
I’ve added the value to the variable meat, but later on I’m asked to total up the tax and tip ontop of the meal as follows:
meal = meal + meal * tip
Why do i need to put meat twice? I thought it would be “meal = meal * tip?” Since meal already has the tax added all that is needed is to add the tip ontop?
I hope this makes sense, i may have confused my self and now everyone else :’)
Thanks for your help everyone!