0

Code is not working

IDK WHYYY Code: Distance=14 Minutes=45 Seconds=30 Speed=(Distance/1.6)/ ((Minutes+0.5)*3600) print(Speed)

5th Mar 2023, 6:00 PM
Nowak March
3 ответов
+ 7
Nowak March , each line of the code has an indentation of 1 space. so the error message for you was: *IndentationError*. this indicates clearly the issue. > remove all *leading spaces* to run the code > i am not sure what your formula is calculating. sample: distance = 14 km distance = 2730 sec => 18.4615 km/h
5th Mar 2023, 8:38 PM
Lothar
Lothar - avatar
+ 3
It's working. Make sure code doesn't have unnecessary whitespaces
5th Mar 2023, 6:05 PM
Kashyap Kumar
Kashyap Kumar - avatar
+ 2
Lothar Yes thank you i figured it out and my formula was wrong ..i fixed it and everything works now thank you ^_^ 👌
5th Mar 2023, 9:25 PM
Nowak March