You are viewing a single comment's thread. Return to all comments →
print(re.sub(r'(\w)\W+(\w)', r'\1 \2', ''.join(map(lambda x: ''.join(x), zip(*matrix))))
Seems like cookies are disabled on this browser, please enable them to open this website
Matrix Script
You are viewing a single comment's thread. Return to all comments →
print(re.sub(r'(\w)\W+(\w)', r'\1 \2', ''.join(map(lambda x: ''.join(x), zip(*matrix))))