Post

Kode Gurukul
Kode Gurukul@kodegurukul·
Answer is b 12. Because: 👉check1 and check2 refers the same lists and check3 is different. 👉So at line check2[0] = "Code", this is done for both check1 and check2 👉because of this condition c[0] == 'Code' is true for check1 and check2. 👉means 1 and added twice and then 10 is added to count.
Kode Gurukul tweet media
English
0
0
0
273
Luz
Luz@Luz_opinando·
@Python_Dv The answer is b) 12 check2 points the same memory address than check1. So, we have the 0 index element with 'Code' string in both (twice). check3 is a copy of check1 with a different memory location. So we have only one element with Mcq string. The value of count is 0+1+1+11 = 12
English
0
0
0
108
Parthiban_RP
Parthiban_RP@parthi_rp·
@Python_Dv 12 Check1 and check2 refer to identical lists, while check3 is a duplicate of check1.”
English
0
0
0
43
Paylaş