112k views
5 votes
Can you solve this challenging activity?

Can you solve this challenging activity?-example-1
Can you solve this challenging activity?-example-1
Can you solve this challenging activity?-example-2

1 Answer

6 votes

Answer:

def smallest(a, b):

if a < b:

return a

else:

return b

def main():

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

b = int(input("Enter second number: "))

print("The smallest of the two numbers is: ", smallest(a, b))

if __name__ == "__main__":

main()

Step-by-step explanation:

Can you solve this challenging activity?-example-1
User Piper
by
4.4k points