0

find even number in a list

I need it with only if.not with for loop

31st Aug 2016, 7:34 AM
Joshna Reddy
Joshna Reddy - avatar
2 Antworten
0
If number[number] iseven: # do something
31st Aug 2016, 11:22 AM
Leshark
Leshark - avatar
0
list=[1,2,3,3] print (list) if ____ (list)%2==0: print(list[0]). but what can I place in the blank??
2nd Sep 2016, 1:48 AM
Joshna Reddy
Joshna Reddy - avatar