Closed MrBlaise closed 10 years ago
Well so:
unit = raw_input('Enter unit of distance (K = KM, M = MI): ').lower()
The text K = KM, M = MI
instructs user to enter k
for km
and m
for mi
. By that logic, the code works perfectly fine!
That's true sorry about that! However it might be more user-friendly with 'km' the and 'mi' but that is just me :)
I've updated the instructions for the user, but the logic is otherwise fine! :-)
Hello!
I have found some bug in the distance.py file.
1.) It did not accept 'mi' as an input, only 'km' 2.) It would've always show the miles format (if unit == k) when unit is either 'km' or 'mi'
Fixed code