Computer Science, asked by aryanajay493, 10 months ago

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 kritikas1775
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