Question: PLEASE HELP in PYTHON. I TRIED different Inputs but still gave an ERROR. IN PYTHON SCREEN pls A pedometer treats walking 1 step as walking

PLEASE HELP in PYTHON. I TRIED different Inputs but still gave anERROR. IN PYTHON SCREEN pls A pedometer treats walking 1 step asPLEASE HELP in PYTHON. I TRIED different Inputs but still gave an ERROR. IN PYTHON SCREEN pls

A pedometer treats walking 1 step as walking 2.5 feet. Define a function named feet_to_steps that takes a float as a parameter, representing the number of feet walked, and returns an integer that represents the number of steps walked. Then, in the main program, reads the number of feet walked as an input, calls function feet_to_steps() with the input as an argument, and outputs the number of steps as an integer. Use floating-point for the input. Ex: If the input is: 150.5 the output is: 60 The program must define and call the following function: def feet_to_steps(num_of_feets): steps = (num_of_feets / 2.5) num_to_steps = int(steps) return num_of_steps if num_of_feets == "steps": num_of_feets = float (input("Number_of feets walked ")) num_to_steps = feet_to_steps(num_of_feets) print("The number of steps are",num_of_steps)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!