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

3ax-n/5=-4 solve for x
How to rename 71 thousand=
There are 35 boys in sixth grade. The number of girls in the sixth grade is 42. Lonnie says that means the ratio of number of boys in the sixth grade to number
Factoring Trinomials (a=1)n^2 + 4n -12
If you release a weight and allow it to fall under the influence of gravity alone, what kind of motion will it experience?
A teacher is choosing 4 students from a class of 30 to represent the class at a science fair. In how many ways can the teacher choose the students?
What European countries were competing for Asian trade during the age of exploration?
The House of Representatives has the special power to
the speed at which at a certain computer can access the internet is 2 megabytes per second how fast is this in megabytes per hour
Why did the Europeans want a new allwater route to Asia? How did the renaissance encourage voyages of exploration