Increasing decreasing sequence

in the basic challenges I am unable to solve the increasing decreasing sequence question in python.
can someone help??