Codington
0 of 6 problems solved • 0%

Exercise prompt

Convert a Distance

Decimal text can be converted with float. Once the value is numeric, multiplication scales it instead of repeating characters.

Example

liters = float("3.5") cups = liters / 0.25 print(cups) # 14.0

Converting first makes a decimal quantity available for unit arithmetic.

Your task

Convert the supplied kilometers to a numeric value named kilometers. Set meters to the equivalent distance in meters.