0

Can You help with this filling blank code?

Filling blank to print the first element of the List if It contains even numer. List=[1,2,3,4] if __(list) et % 2==0__ print (list)[__]

14th May 2017, 7:45 PM
Giuseppe Reho
Giuseppe Reho - avatar
4 Réponses
0
it's a python or what?
14th May 2017, 7:46 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
0
I guess if len(list) et % 2 == 0 : print (list)[0] but not sure, because I don't know this language
14th May 2017, 7:50 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
0
I don't know the answer, but something to keep in mind.. Shouldn't name things "list" it confuses python because list is a data type.
14th May 2017, 9:51 PM
LordHill
LordHill - avatar
0
it's a python code
16th May 2017, 4:58 PM
Giuseppe Reho
Giuseppe Reho - avatar