Question: Exercise 2 : Create a function is _ ordered that receives a sequence and returns True if the elements are in sorted order. Test your

Exercise 2:
Create a function is_ordered that receives a sequence and returns True if the elements are in sorted order. Test your function with sorted and unsorted lists, tuples, and strings.
Exercise 3:
Insert 20 random letters in the range 'a' through 'f' into a list. Perform the following tasks and display your results:
a. Sort the list in ascending order.
b. Sort the list in descending order.
c. Get the unique values and sort them in ascending order.

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 Databases Questions!