Question 4/7 - Transportation (SOLVED)


#1

It was:
def rental_car_cost(days):
rent = 40*days
if days >= 7:
rent = rent - 50
elif days >= 3:
rent = rent - 20
else:
rent
return rent

for those interested^^


#2

Do you understand what scope is? If something is not in scope then it will not work. It means that Python has no way to access the information.

EXAMPLE:

NOT in Scope

def not_in_scoper(invalid):
not = None
in = None
Scope = None