+ 2

Function

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. Define a Python function alternating(l) that returns True if the values in the input list alternately go up and down (in a strict manner)

27th Feb 2018, 5:00 PM
SUNIL PATIL
SUNIL PATIL - avatar
2 odpowiedzi
+ 3
give it a try and post the code here, we’ll help you make any necessary corrections ☺️
28th Feb 2018, 12:03 AM
Pedro Demingos
Pedro Demingos - avatar