Unsupportd operand type of an string index : I tried to run the code down below , but I couldn't because it launched the following error: unsupported operand type(s) for -: 'str' and 'int'. I've been searching and I found that it has somthing to do with the input, but not in this case.


    st = "text"
    for i in range(0, n):
        for j in st:
            if j == 0:
                st[j] = st[len(st)]
            else:
                st[j] = st[j - 1]
