Find and write the output of the following python code:
def replace(M,N):
for i in range(N):
if M[i]%5==0:
if i==N-1:
M[i]=M[i]
else:
M[i]=M[i+1]
if M[i]%3==0:
M[i]=M[i-1]
L=[55,67,21,22,91]
replace(L, len(L))
for i in L:
print(i, end='#')
i)
67#67#67#22#91
ii) 67#67#67#22#91#
iii)
67#67#67#22#22#
iv)
67#67#22#22#91#
Answers
Answered by
1
Answer:
you will get the answer on Google
hope you will get answer
Similar questions
Social Sciences,
2 months ago
Computer Science,
2 months ago
Math,
4 months ago
Hindi,
4 months ago
Math,
10 months ago
Science,
10 months ago
Math,
10 months ago