Let's they I have the list ['abc', 'def', 'gh']
I need to get a string with the contents of the first char of the first string, the first of the second and so on.
So the result would look like this: "adgbehcf"
But the problem is that the last string in the array could have two or one char.
I already tried to nested for loop but that didn't work.
Code:
n = 3 # The encryption number
for i in range(n):
x = [s[i] for s in partiallyEncrypted]
fullyEncrypted.append(x)