print("------------------------------------------") num1 = int(input("Enter first number: ")) num2 = int(input("Enter second number: ")) num3 = int(input("Enter thrid number: ")) num4 = int(input("Enter fourth number: ")) num5 = int(input("Enter fifth number: ")) if (num1 >= num2) and (num1 >= num3) and (num1 >= num4) and (num1 >= num5): biggest = num1 elif (num2 >= num1) and (num2 >= num3) and (num2 >= num4) and (num2 >= num5) : biggest = num2 elif (num3 >= num1) and (num3 >= num2) and (num3 >= num4) and (num3 >= num5) : biggest = num3 elif (num4 >= num1) and (num4 >= num2) and (num4 >= num3) and (num4 >= num5) : biggest = num4 else: biggest = num5 if (num1 <= num2) and (num1 <= num3) and (num1 <= num4) and (num1 <= num5): smallest = num1 elif (num2 <= num1) and (num2 <= num3) and (num2 <= num4) and (num2 <= num5) : smallest = num2 elif (num3 <= num1) and (num3 <= num2) and (num3 <= num4) and (num3 <= num5) : smallest = num3 elif (num4 <= num1) and (num4 <= num2) and (num4 <= num3) and (num4 <= num5) : smallest = num4 else: smallest = num5 print("------------------------------------------") print("The biggest number is:", biggest) print("The smallest number is:", smallest) print("------------------------------------------")