301 views
4 votes
Write a function, which returns the ratio between two numbers obtained as arguments.

1 Answer

4 votes

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:):):)

Step-by-step 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)

User Khanpo
by
3.7k points