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
Get step-by-step solutions from verified subject matter experts
