Question: Using the format method, fill in the gaps in the convert _ distance function so that it returns the phrase x miles equals Y
Using the format method, fill in the gaps in the convertdistance function so that it returns the phrase miles equals km with having only decimal place. For example, convertdistance should return miles equals km
def convertdistancemiles :
miles
result miles equals format
return result
printconvertdistance # Should be: miles equals
printconvertdistance # Should be: miles equals
printconvertdistance # Should be: miles equals
Reset
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
