Create divyasree_katbin_task

This commit is contained in:
DIVYASREE-12 authored and GitHub committed 2023-11-23 15:40:05 +05:30
1 parent 8eed2f1423
commit a8082658e0
1 file changed
+8
+8
View File
@@ -0,0 +1,8 @@
first_input = input().rstrip().split()
n = int(first_input[0])
m = int(first_input[1])
matrix = [input() for _ in range(n)]
result = ' '.join(''.join(c * (c.isalnum() or ' ' == c) for c in matrix[i]) for i in range(m)).replace(' ', ' ')
print(result)