You are viewing a single comment's thread. Return to all comments →
raw_output = '' for j in range(m): for i in range(n): raw_output += matrix[i][j]
print(re.sub(r'(?<=[a-z0-9])[!@#$%&\s]+(?=[a-z0-9])', ' ', raw_output, flags=re.I))
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 →
raw_output = '' for j in range(m): for i in range(n): raw_output += matrix[i][j]
print(re.sub(r'(?<=[a-z0-9])[!@#$%&\s]+(?=[a-z0-9])', ' ', raw_output, flags=re.I))