num1 = int(input("Enter a number:")) num2 = int(input("Enter a number:")) num3 = int(input("Enter a number:")) num4 = int(input("Enter a number:")) num5 = int(input("Enter a number:")) if num1 > num2: if num1 > num3: if num1 > num4: if num1 > num5: print("The biggest number was:", num1) if num2 > num1: if num2 > num3: if num2 > num4: if num2 > num5: print("The biggest number was:", num2) if num3 > num2: if num3 > num1: if num3 > num4: if num3 > num5: print("The biggest number was:", num3) if num4 > num2: if num4 > num3: if num4 > num4: if num4 > num5: print("The biggest number was:", num4) if num5 > num2: if num5 > num3: if num5 > num4: if num5 > num1: print("The biggest number was:", num5) if num1 < num2: if num1 < num3: if num1 < num4: if num1 < num5: print("The smallest number was:", num1) if num2 < num1: if num2 < num3: if num2 < num4: if num2 < num5: print("The smallest number was:", num2) if num3 < num2: if num3 < num1: if num3 < num4: if num3 < num5: print("The smallest number was:", num3) if num4 < num2: if num4 < num3: if num4 < num4: if num4 < num5: print("The smallest number was:", num4) if num5 < num2: if num5 < num3: if num5 < num4: if num5 < num1: print("The smallest number was:", num5)