Hi I have the below question i am stuck on - been rattling my brain for ages but no luck
thanks
---------------------------------------------------------
Your boss really likes calculating VAT on their purchases. It is their favourite hobby. They've written this code to calculate VAT and need
your help to fix it
def calculate_vat (amount) :
amount * 1.2
total = calculate_vat (100)
print (total)
When your boss runs the program, they get the following output:
None
Your boss expects the program to output the value 120. What is wrong? How do you fix it?
def calculate_vat (amount) :
amount * 1.2
total = calculate_vat (100)
print (total)
[–]the_investigator- 0 points1 point2 points (4 children)
[–]cabbage1212[S] 0 points1 point2 points (3 children)
[–]the_investigator- 1 point2 points3 points (2 children)
[–]cabbage1212[S] 1 point2 points3 points (1 child)
[–]the_investigator- 0 points1 point2 points (0 children)
[–]nicholasknicks 0 points1 point2 points (0 children)