Skip to content
CodeItRaw
Code Reading
/
One Direction?
Path
Play
Daily
Leaderboard
tr
Break the Code
One Direction?
Write a list for which this function gives the wrong answer.
1
def
one_direction
(values):
2
for
i
in
range
(
1
,
len
(values)):
3
if
values[i] < values[i -
1
]:
4
return
False
5
return
True