Indeks pertama bilangan bulat kurang dari nilai

value = int(input())
alist = list(map(int, input().split()))
res = next(x for x, val in enumerate(test_list)
                                  if val < value)

print ("The index of element just greater than 0.6 : "
                                           + str(res))
Super Sloth