I try to convert the following Python function :
def Sous(dist,d) : l=len(dist) L=[[]] for i in range(l) : K=[] s=sum(dist[i+1:])