0

what will come in print statement

list = [1,2,3,4] if len (list) %2 == 0 : print(list[__]) fill in the blanks to print the first element of the list, if it contains even no of elements

25th Oct 2016, 4:47 PM
Onkar Ashok Gumate
Onkar Ashok Gumate - avatar
3 ответов
+ 7
the question is wrong because variable list is a list and not an int. so it will give unsupported operand error
25th Oct 2016, 4:58 PM
Tamoghna Saha
+ 2
The first element is list[0].
25th Oct 2016, 6:28 PM
Zen
Zen - avatar
+ 1
k i will correct it
25th Oct 2016, 5:01 PM
Onkar Ashok Gumate
Onkar Ashok Gumate - avatar