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 1/10 of .003=
The Afrikaners who settled in southern Africa traced their origin back to which European region? (A) England (B) Germany (C) Netherlands (D) France (E) Spain
where did farming begin and how did it spread?
Write an expression that shows how to use the halving and doubling strategy to find 28x50
what number has the same value as 50 tens??
what is the scientific notation of 58,927
A rubber ball is dropped onto a hard surface from a height of 8 feet, and it bounces up and down. At each bounce it rises to 90% of the height from which it fe
What was the Lost Generation anguished about?
What is the slope of the line whose equation is 2x-6y=0?
What trade good most stimulated the trans-Saharan trade between Songhai and North Africa? tea gold spices copper