Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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
2 months, 4 weeks agokstr
5 months, 1 week agoJanpcap123
7 months, 3 weeks agoandr3
1 year, 1 month agoNenggg
1 year, 4 months agorotimislaw
1 year, 5 months agopablohm83
1 year, 6 months agomacxsz
1 year, 11 months agorocky48
2 years agosadako11
2 years, 2 months agorocky48
2 years agoDTL001
2 years, 4 months agoDTL001
2 years, 4 months agokungtabumi
2 years, 6 months ago