Given the type of food , quantity( No of plates) and the distance in kms from the restaurant to the delivery point. Write a Python program to calculate the final bill amount to be paid by the customer.

The Below information should be used to check the validity of the data provided by the customer:

- Type of food must be “V” for vegetarian and “N” for non-vegetarian

-Distance in kms must be greater than 0

-Quantity ordered should be minimum 1

If any of the input is invalid, the bill amount should be considered -1

Started Code:

def calculate_bill_amount(food_type,quantity_ordered,distance_in_kms):

bill_amount=0

#write your logic here

return bill_amount

#Provide different values for food_type,quantity_ordered,distance_in_kms and test your program

bill_amount=calculate_bill_amount(“N”,2,7)

print(bill_amount)