In a certain encrypted message which has information about the locations, the characters are jumbled such that first character of the first word is followed by the first character of the second word, then it is followed by second character of the first word and so on.
Let’s say the location is Chennai, Kolkata.
The encrypted message says ckhoelnknaatia
.
Sample Input: ckhoelnknaatia
Sample Output: chennai, kolkata
If the size or length of the two words wouldn’t match then the smaller word is appended with #
and then encrypted in the above format.
To do this, I have to follow the code snippet:
import ast, sys
input_str = sys.stdin.read()
# Type your code here
print(message1, message2)
I do not have required knowledge for ast
and sys
module to solve this.