English, asked by vikasjayakumar41902, 1 month ago

Write a function called is_sorted that takes a list as a parameter and returns True if the list is sorted in ascending order and False otherwise. For example: >>> is_sorted([1, 2, 2]) True >>> is_sorted(['b', 'a']) False​

Answers

Answered by somadas20808
1

Answer:

A function is_sorted is created which takes a list as input and using the sorted() function of python which returns true when the list is sorted in ascending order and returns false when the list is not sorted in ascending order.

Please mark me the brainliest :)

Answered by GraceS
0

\tt\huge\purple{hello!!!}

HERE IS UR ANSWER

_____________________________

a function is called judgemental sorted that takes a list as a parameter and returns True if the list is sorted in ascending order and False otherwise.

Similar questions