Post

Python Developer
Python Developer@Python_Dv·
Comment below the output! 😃👇
Python Developer tweet media
English
18
4
77
8.6K
Earnest Codes
Earnest Codes@Earnesto037·
@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
1
0
13
419
T Sanjana Mayya
T Sanjana Mayya@MayyaT48576·
@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
0
0
1
235
Biel Men
Biel Men@BielMenHaha·
@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
0
0
1
99
Paylaş