Solution for NPTEL Programming, Data Structures and Algorithms using Python, Week 3 Programming Assignment

Question :- Define a Python function ascending(l) that returns True if each element in its input list is at least as big as the one before it. Here are some examples to show how your function should work. >>> ascending([]) True >>> ascending([3,3,4]) True >>> ascending([7,18,17,19]) False A list of integers is said to be a valley Read more…