I need help to finish this exercise in python

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)

This question might be better suited under the python category / the lesson.
as well providing your code with the correct format makes it easier to see
what code you have attempted.

# for example

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)

Just to add to what @gitsthebits said…

If you’ve tried and are stuck, post the code and we’ll help you fix it.

If you’re expecting us to give you a working solution outright, then perhaps you’re in the wrong place. Giving you the answers with no effort on your part doesn’t constitute learning.

You’ll gain more by trying and failing, then coming here for help, than you will by us simply doing it for you.