Post

Earnest Codes
Earnest Codes@Earnesto037·
@Python_Dv Answer: B. 1 Explanation: This is what's happening; A list named List is initialized with the values [1, 0, 2]. The expression List[::-1] creates a reversed copy of the List. The slice [::-1] starts at the end of the list and moves backward to the
English
0
0
0
334
Royce
Royce@Royce4Q2·
@Python_Dv List = [1, 0, 2] a, b, c = List[::-1] print(List[b]) B) 1 # using List[::-1] reverses the list [2, 0, 1] print List[b] , b has the value 0 result List[0] is now 1
English
0
0
1
207
Paylaş