title: How to fix this code to calculate correct costs in Python?
body: <p>Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles.</p>
  <p>Ex: If the input is:</p>
  <pre><code>20.0
  3.1599
  </code></pre>
  <p>Then the output is:</p>
  <pre><code>1.579950 7.899750 63.198000
  </code></pre>
  <p>Note: To solve the problem, calculate first the gas cost for driving a mile. Then use this result to compute the gas cost for 10 miles, 50 miles, and 400 miles.</p>
  <p>Note: Real per-mile cost would also include maintenance and depreciation.</p>
  <p>My code:</p>
  <pre><code>gas_cost = float(input())
  per_mile = 1 / gas_cost
  ten_mile = per_mile * 10
  fifty_mile = per_mile * 50
  fourh_mile = per_mile * 400
  print( ten_mile , fifty_mile , fourh_mile )
  </code></pre>
  <p>Output differs. See highlights below.
  Input</p>
  <pre><code>20.0
  3.1599
  </code></pre>
  <p>Your output</p>
  <pre><code>0.5 2.5 20.0
  </code></pre>
  <p>Expected output</p>
  <pre><code>1.57995 7.89975 63.198
  </code></pre>