I've list and I want to get the other element when I found the value I'm looking for. For example:
list = [1,2,3,4,5,6]
for element in list:
if element > 3:
variable = element
break
print(element)
4
So I want to get the 5. Is there a function to do that ?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…