First Python list index greater than x?

后端 未结 12 1935
遇见更好的自我
遇见更好的自我 2020-12-02 08:27

What would be the most Pythonic way to find the first index in a list that is greater than x?

For example, with

list = [0.5, 0.3, 0.9, 0.8]
         


        
12条回答
提交回复
热议问题