From eec37d9ab442ba20e4662d375617e59ddbe358ee Mon Sep 17 00:00:00 2001 From: LegendJurai Date: Tue, 25 Feb 2025 17:14:12 +0100 Subject: [PATCH] Update 30_rocket.py I think that would be a fitter solution for the question specifically. But actually, I am just trying this function of committing changes and pulling request (I am new to GitHub). So if you think my solution is shit than just ignore this request xD --- 6-functions/30_rocket.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/6-functions/30_rocket.py b/6-functions/30_rocket.py index 306c2eb..7939bcd 100644 --- a/6-functions/30_rocket.py +++ b/6-functions/30_rocket.py @@ -2,7 +2,8 @@ # Codédex def distance_to_miles(distance): - return distance / 1.609 + miles = (distance / 1.609) + print(str(distance) + 'km are ' + str(miles) + ' miles.') + +distance_to_miles(1000) -answer = distance_to_miles(10000) -print(answer)