0
Hi, please I need someone to help me complete the missing line in the if statement thanks.
List = [1,2,3,4] if __(list)%2 ==0: print(list[0])
5 ответов
+ 7
an other guess:
List = [1,2,3,4]
if len(List)%2 ==0:
print(List[0])
# output:
1
+ 4
hi, see my comment :
'''
List = [1,2,3,4]
if __(list)%2 ==0:
print(list[0])
'''
# is it like this?
lst = [1,2,3,4]
for i in lst:
if i %2 == 0:
print(i)
# output:
'''
2
4
'''
+ 1
Comment to each quiz is at lower left, not upper right.
https://www.sololearn.com/post/131750/?ref=app
+ 1
Thanks guys... Later figured it out...
0
No... It's a module Quiz question... I have to complete the: if _(list)%2==0:
I tried using 'not' e.g: if not(list)%2==0: but that's not it