Write a function that processes a list of values and returns 1 if the values are sorted in ascending
order, -1 if the values are sorted in descending order, and 0 otherwise.
Answers
Answered by
0
Answer:
If you want to learn how to work with the sort() method in your Python ... How to compare the elements of a list based on intermediate values. ... How the process of mutation works behind the scenes. ... Each element is passed as an argument to the len() function, and the value returned by this function call is ...
hope this helps u!!!
Similar questions
English,
5 months ago
Hindi,
5 months ago
Math,
10 months ago
Environmental Sciences,
1 year ago
Geography,
1 year ago