Simple transposition is a basic and simple cryptography technique. We make 2 rows and put first a letter in the Row 1, the second in the Row 2, third in Row 1 and so on until the end. Then we put the text from Row 2 next to the Row 1 text and thats it.

Complete the function that receives a string and encrypt it with this simple transposition.

## Example
For example if the text to encrypt is: `"Simple text"`, the 2 rows will be:



Row 1
S
m
l
 
e
t


Row 2
i
p
e
t
x
 



So the result string will be: `"Sml etipetx"`

Difficulty: introductory

Starter code:

def simple_transposition(text):
	

Solutions:
def simple_transposition(text):
    return text[::2] + text[1::2]

def simple_transposition(text):
    text1=text[0::2]
    text2=text[1::2]
    return text1+text2

def simple_transposition(text):
    rowOne = True
    one = ""
    two = ""
    for x in text:
        if(rowOne):
            one += x
        else:
            two += x
        rowOne = not rowOne
    return str(one) + str(two)

def simple_transposition(text):
    return "".join(text[::2] + text[1::2])

def simple_transposition(text):
    row1 = []
    row2 = []
    count = 1
    for char in text:
        if count % 2 != 0:
            row1.append(char)
        else:
            row2.append(char)
        count += 1
    return ''.join(row1) + ''.join(row2)

def simple_transposition(text):
    even_idx = ''
    odd_idx = ''
    for idx, char in enumerate(text):
        if idx % 2 == 0:
            even_idx += char
        else:
            odd_idx += char
    new_text = even_idx + odd_idx
    return new_text

def simple_transposition(text):
    return f'{text[::2]}{text[1::2]}'


def simple_transposition(text):
    text = list(text)
    row1 = []
    row2 = []
    for x in range(len(text)):
        if x%2==0:
            row1.append(text[x])
        else:
            row2.append(text[x])
    result = "".join(row1) + "".join(row2)
    return result


simple_transposition = lambda s: s[::2] + s[1::2]

def simple_transposition(text):
    r1 = ""
    r2 = ""
    for ch in range(len(text)):
        if ch % 2 == 0:
            r1 += text[ch]
        if ch % 2 == 1:
            r2 += text[ch]
    transpo = r1 + r2
    return transpo