← Back to User Input
Question 163
Kilometres To Miles
Kilometres To Miles
Ask for a distance in kilometres with the prompt Kilometres? (space after the question mark), convert it with float(), multiply by 0.621371 and print the result with two decimals in the form That is <miles> miles. Input: one line, a decimal number. The prompt is part of the output and input() stays on the same line, so the prompt and the sentence share one output line.
Expected Output:
Kilometres? That is 6.21 miles.= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.