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