- 4

def ChangeVal(M,N): for i in range(N): if M[i]%5 = = 0: M[i] //= 5 if M[i]%3 = = 0: M[i] //= 3 L=[25,8,75,12] ChangeVal(L

I need this for my exam as soon as possible before the next 15 min please

5th Oct 2020, 4:31 AM
Arpan Pradhan
Arpan Pradhan - avatar
2 Respostas
+ 4
The code was cut and your question is unclear. Please clarify. And don't cheat at exams.
5th Oct 2020, 4:44 AM
Kevin ★
0
Sir i actually had a doubt What is the output of the following code snippet? def ChangeVal(M,N): for i in range(N): if M[i]%5 == 0: M[i]//=5 if M[i]%3 == 0: M[i]//=3 L = [25,8,75,12] ChangeVal(L,4) for i in L: print(i,end="#") what will be the solution for M[2] and pls explain . Thanks
13th Sep 2023, 11:57 AM
Oikawa Tōru
Oikawa Tōru - avatar