Question: Write a python program ordered.py that reads in three integers as command-line arguments, x, y, and z. Define a boolean variable isOrdered whose value is
Write a python program ordered.py that reads in three integers as command-line arguments, x, y, and z. Define a boolean variable isOrdered whose value is true if the three values are either in strictly ascending order (x < y < z) or in strictly descending order (x > y > z), and false otherwise. Print out the variable isOrdered.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
