Week-3 Assignment Solution (Last Date : 20/02/2020)
def remdup(l):
final = []
for i in l:
if i not in final:
final.append(i)
return final
def sumsquare(l):
submit = [0,0]
for i in l:
if i%2 == 0:
submit[1] += i**2
else:
submit[0] += i**2
return submit
def transpose(M):
s = []
for i in range(len(M[0])):
s.append([j[i] for j in M])
return s
Note: Copy the Code and Paste as it is without making any changes into it. If you have any queries Please do comment Below and Share among your friends.
What Have U Written In S.append Can U Explain It Clearly
ReplyDelete