For a school project I have been trying to make a very very simple encryptor, however I am struggling with the encryption part. Basically I would like to have the encryption be every other letter starting from the first at the beginning and every other character at the end.
So 123456 would return as 135246
I am having trouble selecting every other letter after the first
def encrypt(message):
return "%s%s" % (message[::-1],message[::2])
print(encrypt("123456"))