Post

Kode Gurukul
Kode Gurukul@kodegurukul·
Answer is baz. How Steps: 1. x[1] = [3.141, 20, [30, 'baz', 2.718]] 2. x[1][2] = [30, 'baz', 2.718] 3. x[1][2][1] = 'baz'
Kode Gurukul tweet media
English
0
0
0
246
Dr. Sultan
Dr. Sultan@SultanAcademyUS·
@Python_Dv This is a good one Firstly we access the second element of x then we access the third element of it. Then the 2nd element of the third element. On other words, The output will print the 2nd element of the 3rd element of the 2nd element of x. Which is 'baz'
English
0
0
0
150
spark ✨
spark ✨@SparkABrain·
@Python_Dv Baz x[1] = [3.141, 20, [30, 'baz', 2.718]] x[1][2] = [30, 'baz', 2.718] x[1][2][1] = 'baz
Türkçe
0
0
0
28
Muhammad Hunain
Muhammad Hunain@Hunain_5698·
@Python_Dv Answer) A x[1], element at index position of first list, which is another list here x[1][2], element at index position 2 which is in the list at index position 1 x[1][2][1], element at index position 1 which is in sublist at index position 2 which is at index position 1
English
0
0
0
39
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv baz. x is a nested list. x[1]=> Element at index 1=>[3.141, 20, [30, 'baz', 2.718]]. x[1][2]=> Element at index 2 of nested list (which is [30,'baz',2.718].) x[1][2][1] => Element at index 1 of nested list=> baz
English
0
0
0
88
Paylaş