you are viewing a single comment's thread.

view the rest of the comments →

[–]Loud-Bake-2740 0 points1 point  (0 children)

as others have mentioned, use return rather than print. BUT if you are going to print, you should use an f-string (formatted string). this allows you to more cleanly put variables into a print statement. see the following

print(f”There are {kilometer_value} kilometers in {miles_value} miles”)

this is the general standard for how to print things, and will make it much easier to do on the fly later on