Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

debug my codes following the instruction and troubleshoot plz phyton provided. (ignore this previous baragraph) Let's assume, for this exercise, that 1 mile equals 36630

debug my codes following the instruction and troubleshoot plz
phyton
image text in transcribed
image text in transcribed
image text in transcribed
provided. (ignore this previous baragraph) Let's assume, for this exercise, that 1 mile equals 36630 inches (note that this is not entirely correct mathematically, but let's just use that factor for this lab). Let's customize this calculation to account for the size of our stride. Write a function steps_to_miles () whose input is the number of steps and the length of the step in inches (an integer and a float respectively). The function should return the number of miles walked (the returned value should be a float, do not round the value here). Note that we do not want to assume that everyone's step should be 18.375 inches, which is why we are asking the user to input the length of their step as a separate value - the second parameter in our function. Write a program to collect the user input, call the function, and output the result as specified below with two digits after the decimal point (remember that you can use f-strings for that using print \( \left.\left(f^{\prime}\{\text { your _ value: } .2 \mathrm{f}\}^{\prime} ight) ight) \). Example ma...py Load default template... Input Your output starts with Expected output starts with 3.Unit test ^ 0/3 steps_to_miles (1199,20) Some error in your code, python error looks 1 ike Test feedback steps_to_miles () takes 1 positional argument but 2 were given Please explore it in developer mode (remember to call the functiont) 4.Unit test 0/3 Random values as parameters Test feedback ateps_to miles () takes 1 positional argument but 2 were givon Please explore it in developer mode (remember to call the functiont)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions