this is my code, and when I input numbers that has two digits and one number that has only one digit, (e.g. when I input 47, 57, and 9) it results to 9 which is the smallest. please help.
def maximum(a, b, c):
list = [a, b, c]
return max(list)
num_one = input("Enter 1st Number: ")
num_two = input("Enter 2nd Number: ")
num_three = input("Enter 3rd Number: ")
num4 = 0
if num_one.isdecimal():
if num_one.isdecimal():
if num_one.isdecimal():
a = num_one
b = num_two
c = num_three
print(maximum(a, b, c))
else:
print("wrong input")
else:
print("wrong input")
else:
print("wrong input")