buugjuicee8687 buugjuicee8687
  • 13-01-2021
  • Mathematics
contestada

Write a function inches_to_ft that takes a number of inches x and returns the number of feet. One foot equals 12 inches.

Respuesta :

fichoh
fichoh fichoh
  • 16-01-2021

Answer:

def inch_to_feet (x):

return 1/x

Step-by-step explanation:

Implementating the program Using python 3 :

def - - - > function declaration keyword

inch_to_feet - - > function name

x - - > argument which the function takes

The value returned is a conversion of x which is in inches to feets

1/12 feet = 1 inch

To see the value returned ;

We can run the code :

def inch_to_feet(x):

return (1/12)*x

b = inch_to_feet(12)

print(b)

The code above will print 1.

Answer Link

Otras preguntas

y= \,\,x^2+4x-4 x 2 +4x−4 y= y= \,\,x-6 x−6
Please use the map below to answer the following question: (scroll down to see the map Which of the following resources is found in the United States but not in
which term best defines the feeding behavior of most gulls?
A right prism has a rectangular base. The length is 5ft, width is 2ft, and its height is 10ft. What is the volume of the prism? ft³
Which one did I buy the iPhone 13 or the Samsung S22 Ultra?
What is the equation of the line that has a slope of 1 and passes through the point (1,5)? Oy - 1 = (t + 5) y – 5 = (1 - 1) y + 1 = (1 - 5) y + 5 = (x + 1) Subm
smart manufacturing is achieved by instituting employee surveillance and monitoring.
Which is an example of kinetic energy?
Why is the perseverance rover important?
Factor 2x^2+x-3 (PLEASE INCLUDE STEP BY STEP) The unit is "Factoring trinomials by grouping" so please use that method