- 2
How can I print the first element of the list, if it contains even number of elements.
The question is: 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[__])
3 Réponses
+ 8
- If it's a question in-between lessons, you can get a hint by tapping on "HINT" button or you can reveal the full answer by tapping "UNLOCK ANSWER"
- If it's a quiz (challenge) question, you can see the answer after the challenge ends.
Please do either of the above. For explanations of lesson quizzes you can refer to the Comment section, they usually have good explained answers! Thanks.
+ 1
Thank you, Nikhil.
0