0
What should I fill in the blank spaces to print the first element of the list?
list=[1,2,3,4] if _(list)%2==0 print(list[_])
2 Respuestas
+ 3
Only if it contains an even number of elements, right?
list=[1,2,3,4]
if len(list)%2==0:
print(list[0])
+ 1
list=[1,2,3,4]
if len(list)%2==0:
print(list[0])