Question: using python 3: write a function that has one parameter: a list. the function returns True if the list is sorted (either in ascending order

using python 3:

write a function that has one parameter: a list. the function returns True if the list is sorted (either in ascending order or descending order). otherwise, it returns false. examples: [2,5,9] results in True[8,8,4,3] results in True[2,9,5] results in False.

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!