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

If T(n) = 3n -5 what is the 3rd term
How many molecules are in 0.400 moles of. N2O5?
Why is convex lens used in microscope?
What is 5/8 in a decimal ?
Liz has a 24-inch long ribbon. She cuts nine 2 -inch piecesfrom her original ribbon. How much of the original ribbon is left?
The length of a model car is 1/20 of the length of the actual car. If the model. is 8.7 inch long, how long is the actual car? Express your answer in feet.
what fraction of 1 litre is 10 millilitres
Which does not contain any punctuation errors? A. Please put on your pajamas, it's time for bed. B. Please put on your pajamas; it's time for bed. C. Please put
What strange event happens during Belshazzar's feast? A. A hungry lion refuses to harm Daniel. B. Belshazzar begins to speak in a language that no one unders
Which sentence is written correctly? A. I don't know where she is at. B. I don't know where she is.