Parking fee problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

24th Apr 2022, 11:49 AM
Daniel W.
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
24th Apr 2022, 12:58 PM
A͢J
A͢J - avatar