cost = 40 * days
if days >= 7:
return cost - 50
elif days >= 3:
return cost - 20
Hi @5325422693 ,
Because your code is not formatted, it is difficult for other users to read and debug it. After code is been pasted into the editing window for posting, you can format it by selecting it, and then by clicking the </> button above the editing area. This will enable us to see important details, such as the indentation and underscores.
Did you name the function
rentalcarcost? It should be
rental_car_cost. Also make sure that your indentation is correct.
You need to put
print rentalcarcost(10) # There is no need any indent ,the answer might be 350
I think there only shows None on the right black region, that because the outcome is only code knows
so even the code is right you still can't see anything.