Post

Demian
Demian@demian_bash·
@Python_Dv [EXPLANATION] The unpacking operation `x, *y = (1, 2, 3, 4, 5)` assigns the first element to `x` and the remaining elements `[2, 3, 4, 5]` to `y` as a list. Therefore, `y` is a list containing the elements `[2, 3, 4, 5]`. [ANSWER] A) [2, 3, 4, 5] <class 'list'>
English
0
0
0
246
cemdev
cemdev@cemdev_·
@Python_Dv Answer [2, 3, 4, 5] <class 'list'>
English
0
0
0
124
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv None of these. * is for unpacking. Thus, first element is assigned to x and remaining ones to y in the form of a list. The correct output is [2, 3, 4, 5] <class 'list'>
English
0
0
0
148
Paylaş