The following code scrambles the text randomly using step size, i want to write a function to unscramble and get the original string how to do it.
def scramble(plain):
cipher = ""
step = 7
for x in range(0, step):
for y in range(x, len(plain), step):
cipher += plain[y]
return cipher