In [1]:
while True: #This will begin the while loop and it will keep going until you say no
    firstInteger = int(input("What is your first integer:  ")) #Input for the first integer
    secondInteger = int(input("What is your second integer:  ")) #Input for the second integer
    thirdInteger = int(input("What is your third integer:  ")) #Input for the third integer

    if firstInteger < secondInteger < thirdInteger: #if statement stating the integers are all less than and decreasing
        print("{}, {}, {} - In Order".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which will print out the numbers in a specific format showing it is in order 
    
    if firstInteger > secondInteger > thirdInteger: #if statement stating the integers are all greater than each other and increasing
        print("{}, {}, {} - In Order".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which is showing the numbers are all in order
    
    if firstInteger < secondInteger > thirdInteger: #if statement stating the integers are less than and then greater than each other, which are both decreasing and increasing
        print("{}, {}, {} - Not In Order".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which shows the numbers are not in order due to their formating

    if firstInteger > secondInteger < thirdInteger: #if statement stating the integers are greater than then less than each other and are first increasing then decreasing
        print("{}, {}, {} - Not In Order".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which shows the numbers are not in order since it first starts off increasing than it decreases 
    
    if firstInteger == secondInteger <= thirdInteger: #if statement stating that the first integer is equal to the second and then the second integer is less than the third integer
        print("{}, {}, {} - In Order - We Have A Pair!!!!".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which shows the numbers are in order and the first two integers are pairs. The second integer is less than the third integer
    
    if firstInteger == secondInteger >= thirdInteger: #if statement stating that the first and second integers are equal and the second integer is greater than the third integer
        print("{}, {}, {} - In Order - We Have A Pair!!!!".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which show the numbers are in order and there are pairs. The first integer is equal to the second integer, but the second integer is greater than the third integer
    
    if firstInteger <= secondInteger == thirdInteger: #if statement stating that the first integer is less than or equal to the second integer. The second integer is also equal to the third integer.
        print("{}, {}, {} - In Order - We Have A Pair!!!!".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which shows the number are in order and they are pairs. The first integer is less than or equal to the second integer.The second integer is equal to the third integer.

    if firstInteger >= secondInteger == thirdInteger: #if statement stating that the first integer is greater than or equal to the second integer. The second integer is equal to the third integer.
        print("{}, {}, {} - In Order - We Have A Pair!!!!".format(firstInteger, secondInteger, thirdInteger)) #print statement and format statement, which shows the numbers are in order and there is pairs. The first integer is greater than or equal to the second integer and second integer is equal to the third integer.
        
    keepGoing = input("Do you want to keep going, Yes or No: ") #variable that will ask you if you want to keep the program going or stop it 
    if keepGoing == "No" or keepGoing == "no": #variable will allow both No and no since they are both different in programming
        print("Goodbye, Have a Good Day!!") #if the choice is no then it will print this statement 
        break #this will end the while loop and the program 
        
What is your first integer:  7
What is your second integer:  9
What is your third integer:  8
7, 9, 8 - Not In Order
Do you want to keep going, Yes or No: no
Goodbye, Have a Good Day!!
In [ ]:
 
In [ ]: