asked 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
answered
User Piper
by
8.1k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.