Need help taking a vacation (transportation)


#1

Continuing the discussion from Taking a Vacation (4. Transportation) Help please!:

i need help as well this is my code and it doesn't work

def rental_car_cost(days):
if 50 >= 7:
return days
elif 20 >= 3:
return days


#2

Hello, @danielmann!
The problem with your code ins't really the syntax but the logic.
Your code might work but won't print out the correct output because the first condition, 50 >= 7, will always be executed.

In this exercise, you're supposed to compare the value stored in the parameter days with the statements in you if/elif conditions.
Also, check if there's no extra information about how much a day a person will pay, discounts or any other thing that it might be useful for the lesson.

Quote me if there's anything else I can help you with!

Best regards,
g4be