I have tried this code:
numbers = [1,2,5,8,4,99,3]
x = 0
while numbers[x+1] > numbers[x]:
x = x+1
print numbers[x]
The output is 8
Howcan I fix that?
I have tried this code:
numbers = [1,2,5,8,4,99,3]
x = 0
while numbers[x+1] > numbers[x]:
x = x+1
print numbers[x]
The output is 8
Howcan I fix that?