Question: How to create a function in python 3 that returns 1 if the list is in ascending order, and otherwise returns 2. No recursion, or

How to create a function in python 3 that returns 1 if the list is in ascending order, and otherwise returns 2. No recursion, or Sort, only using lambda, or map/filter/range

thanks:)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!