← Back to User Input
Question 175
Miles To Kilometres
Miles To Kilometres
Read a distance in miles as a decimal number, multiply it by 1.609344 and print one line in the form <miles> miles is <kilometres> km with the miles shown to one decimal and the kilometres to two. Input: one line, a number, read with a bare input() and no prompt.
Expected Output:
10.0 miles is 16.09 km= newline. The output ends with a newline — print one after the last line.
Hints3 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.