0
Code is not working
IDK WHYYY Code: Distance=14 Minutes=45 Seconds=30 Speed=(Distance/1.6)/ ((Minutes+0.5)*3600) print(Speed)
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
+ 3
It's working. Make sure code doesn't have unnecessary whitespaces
+ 2
Lothar
Yes thank you i figured it out and my formula was wrong ..i fixed it and everything works now thank you ^_^ 👌