Valid input, but contentually incorrect


Not a code problem, just something i noticed while doing the tutorial. Switching days and nights in the function hotel_cost(nights) is a valid syntax, but contentually incorrect. It should be hotel_cost(days-1).

Great tutorial, but since debugging logical errors is usually more complicated than syntax problems, i thought i should point it out.

Kind regards


i can think of many more things you could improve upon this program, but then the tutorial would be very lengthy. Its always a matter of balance


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.