Introduction to Programming using Python 1st Edition

Published by Pearson
ISBN 10: 0132747189
ISBN 13: 978-0-13274-718-9

Chapter 5 - Loops - Programming Exercises - Page 159: 5.4

Answer

Miles _______ Kilometers 1 ____________ 1.609 2 ____________ 3.218 3 ____________ 4.827 4 ____________ 6.436 5 ____________ 8.045 6 ____________ 9.654 7 ____________ 11.263 8 ____________ 12.872 9 ____________ 14.481 10 ____________ 16.090

Work Step by Step

print("Miles Kilometers") for i in range(1,11,1): print('{:<13d} {:<10.3f}'.format(i, i*1.609))
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.