• + 2 comments

    if you don't want to use rjust. You can simply add space yourself

    for length in range(n):
        print(' '*(n-length-1)+'#'*(length+1))