Question: Write the following function that returns true if the list is already sorted in increasing order: def isSorted ( lst ) : Write a main

Write the following function that returns true if the list is already sorted in increasing order:
def isSorted(lst):
Write a main function that prompts the user to enter a list and displays whether the list is sorted
or not.
Here are sample runs:
Enter numbers: 11344579103011
The list is not sorted
Enter numbers: 113445791030
The list is already sorted

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!