I am trying to make python take a reveres pattern of the selected input and add the rest in the end. But how do I add the remaining "34defg"? I tried to create a remaining var and print it besides it but it didn't work.
inp1 = "aBcd1234defg"
index = int(input("Enter Index: "))
start = len(inp1)*-1+index
end = (len(inp1)*-1) -1
print(inp1[start:end:-1])