Help me with the meal code


#1

how to use % in python?
meal = 44.50
restaurant tax = 44.50 + % 6.75
tip = (44.50 + % 6.75 ) % 15
where am i doing wrong/


#2

% is the module operator, you will get it later in this course.

What you need to do here, is decimal percentage, everything you have is 5 cows, 100% then is:
5 * 1 = 5 cows, make sense?
So how do you calculate how many 20% is? simple:
5 * 0.2 = 1 cow, does that make sense?


#3

In python, the "%" has a specific functionality. As stetim94 said, it is the module operator. To write something in percentage in python, you have to divide the number you want by 100. For example, if you want to write 6.75%, you have to write 6.75/100 instead (which is then equal to 0.0675). Does it make sense?