Create divyasree_katbin_task

This commit is contained in:
DIVYASREE-12 2023-11-23 15:40:05 +05:30 committed by GitHub
parent 8eed2f1423
commit a8082658e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
divyasree_katbin_task Normal file
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)