Computer Science, asked by glenthomas, 7 months ago

Write a python function that takes two numbers and return the smaller number. Also write how to call this function.

Answers

Answered by ProblemUnlocker
13

Answer:

Here is your code...

def greater_num():

   num1 = int(input("Enter a number : "))

   num2 = int(input("Enter another number : "))

   if num1 > num2:

       print('The smaller number is : ',num2)

   else:

       print('The smaller number is : ',num1)

greater_num()

Please mark me as brainliest and do follow me , plzzz...

Similar questions