Question: python 3. Let a list containing two numbers be given. Return True if the list of numbers is in ascending order (that is, if the
3. Let a list containing two numbers be given. Return True if the list of numbers is in ascending order (that is, if the first element of the list is less or equal than the second element in the list). Otherwise, return False. (0.25%) In 1: H def is ascending(list): Let a list containing two numbers be given. Return True if the list of numbers is in ascending order (that is, if the first element of the list is less or equal than the second element in the list). Otherwise, return False. # insert your code for this function here. # some test cases to try out print(is ascending( [0,1])) # should print True print(is ascending( [1,1])) # should print True print(is ascending( (1,01)) # should print False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
