#!/usr/bin/env python3; import Utils import math def convertKMtoMiles(x) : y = {} for planet in x.keys() : y[planet] = math.trunc(x[planet] * 0.621371 + 0.5) return y # Begin Main planetDiametersInKM = { "Mercury": 4879, "Venus": 12103, "Earth": 12756, "Mars": 6794, "Jupiter": 142985, "Saturn": 120534, "Uranus": 51115, "Neptune": 49534, "Pluto": 2374, "Ceres": 946, "Eris": 2326, "Makemake": 1430 } planetDiametersInMiles = convertKMtoMiles(planetDiametersInKM) for planet in planetDiametersInMiles.keys() : print(planet + " has a diameter of " + str(planetDiametersInMiles[planet]) + " miles")