+ 1
Parking fee problem
Hi guys! I sah some Other solutions and I know my try is way too complicated. Nevertheless I would like to know why it doesn't work for more than 23 hours of parking. Could someone explain please? Thanks :) https://code.sololearn.com/cJc7d1ErNi2d/?ref=app
1 Answer
+ 5
Daniel W.
Yes it is too complex
For more than 24 hours no need of if else statement
total = (hours / 24) * 15 + (hours % 24) * 0.5
print (total)
Simple