Post

@Python_Dv Answer: (c) 30
The code defines a list a and then prints an element of a using nested indexing and integer division.
First, a[1] accesses the element at index 1, which is 20.
Next, 20 // 10 performs integer division (floor division), which results in 2.
English

@Python_Dv Option C : 30
Solution :
Given : a = [10, 20, 30, 40, 50]
There is a list defined as 'a.'
print(a[a[1] // 10])
a[20 // 10] because a[1] = 20
a[2] which is nothing but 30
English

@Python_Dv Alternative C: 30
There's a list [10,20,30,40,50]
Inside the slice will occur an integer division of the second element of the list (index 1, int 20).
The result is 2.
And then, the index 2 of the list is the int 30.
English

@Python_Dv 30. index the index to index the index.
English
















