Based on the exact code presented the correct answer is B, if you remove the ']' from the code obviously the answer becomes [3,1] BUT the fact is ']' exists in the code so you must select B as the correct answer and nor speculate on 'what if's'
In [89]: mylist = [ i for i in range(5)]
In [90]: mylist
Out[90]: [0, 1, 2, 3, 4]
In [91]: m = [mylist[i] for i in range (4,0,-1) if mylist[i] % 2!=0 ]
In [92]: m
Out[92]: [3, 1]
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
seaverick
10 months agokstr
1 year agoJanpcap123
1 year, 2 months agoandr3
1 year, 8 months agoNenggg
1 year, 11 months agorotimislaw
2 years agopablohm83
2 years, 1 month agomacxsz
2 years, 6 months agorocky48
2 years, 7 months agosadako11
2 years, 9 months agorocky48
2 years, 7 months agoDTL001
2 years, 11 months agoDTL001
2 years, 11 months agokungtabumi
3 years, 1 month ago