Mistři v programování na #hovnokod

Python #454

def get(a='',x=-1):
    b,c,d,e,f=a.split('\n'),[],[],0,0
    for i in range(len(b)):
        if i==0: c+=[i]; e+=len(b[i])+1; f+=len(b[i]); d+=[f]
        elif i==len(b)-1: f+=len(b[i]); d+=[f]; c+=[e]
        else: f+=len(b[i])+1; c+=[e]; d+=[f]; e+=len(b[i])+1
    for i in range(len(c)):
        if range(c[i], d[i]+1).count(x): return i

HovnoKod,