e | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

e

Fill in the blanks to print the first element of the list, if it contains even number of elements. list = [1, 2, 3, 4] if (list) % 2 == 0: print(list[0]) what is next to if

13th Sep 2018, 1:13 PM
DINESH M
DINESH M - avatar
1 Answer
+ 7
len. * If this was a quiz question, you could check the answers after the challenge ends by tapping on "Show Answers" * If this was a question in between lessons, then you could get a hint by Tapping on the HINT Button or you can reveal the full answer by Tapping on UNLOCK ANSWER. These cost XP though.. Please take care of this next time!
13th Sep 2018, 1:32 PM
Nikhil
Nikhil - avatar