Please help in debugging

def hashvalue(div,sring):
    sring=sring
    p,x=1000000007,263
    div=div
    summ=0
    for k in len(sring):
        summ=summ+((ord(sring[i]))*(x**k))
    return ((summ)%p)%div
a,b=input().split()
print(hashvalue(5,b))

Hold on, you okay man, why are you spamming the forum. You have created 4 spammy threads already

1 Like