We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
explain me i was a beginer (so explain with resource is appreciable and best)
`python
def IndexLast(List,Value):
L=List
while L.count(Value)!=1:
L.remove(Value)
return L.index(Value)
first_multiple_input = input().rstrip().split()
n = int(first_multiple_input[0])
m = int(first_multiple_input[1])
matrix = []
for _ in range(n):
matrix_item = input()
matrix.append(matrix_item)
Cor_Lis=[[row[i] for row in matrix]for i in range(m)]
Cor_Lis2=[]
for i in Cor_Lis:
Cor_Lis2.extend(i)
Str=str()
for i in Cor_Lis2:
while i.isalnum():
Str+=str(i)
break
try:
while not(i.isalnum()) and Str[-1]!=" ":
Str+=" "
except:
continue
STR=str(Str.rstrip())
for j in Cor_Lis2[IndexLast(Cor_Lis2,STR[-1]):]:
while not(j.isalnum()):
STR+=str(j)
break
while j.isalnum():
break
break
print(STR)
please anyone respond
Cookie support is required to access HackerRank
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 →
why is this code not working?
explain me i was a beginer (so explain with resource is appreciable and best)
`python
please anyone respond