banesanurares
banesanurares banesanurares
  • 25-01-2020
  • Computers and Technology
contestada

Write a function, which returns the ratio between two numbers obtained as arguments.

Respuesta :

airasadia1200 airasadia1200
  • 26-01-2020

Answer:

well my friend told me this answer and I have no clue about this, so if this is wrong I am sorry:(.....but I hope it helps:):):)

Explanation:

def ratioFunction(num1, num2):

   num1 = input('Enter the first number: ')

   int(num1) # this does nothing because you don't capture it

   num2 = input('Enter the second number: ')

   int(num2) # also this

   ratio12 = int(num1/num2)

   print('The ratio of', num1, 'and', num2,'is', ratio12 + '.')

ratioFunction(num1, num2)

Answer Link

Otras preguntas

what is a 15 yard gain
How does the internal structure of the earth influence the creation of the continents, ocean, and the mountain range
Currently, you have $80 answer your sister has $145. You decide to save $6 of your allowance each week, while your sister decides to spend her whole allowance p
what is the first five nonzero multiples of 3 and 10
What four concepts are discussed in the political writings of John Milton?
Find the unit rate and round to the nearest cent?
Who was the first president to live in the white house?
The study of which structure was instrumental in the formulation of the modern cell theory?
All the years from A.D. 1400 to A.D. 1499 make up the fifteenth century A.D. true or false?
who led the mormons to present day utah in search of religious freedom