adplus-dvertising
frame-decoration

Question

Which of the following numbers will not be a part of the output list of the code shown below?
def sf(a):
    return a%3!=0 and a%5!=0
m=filter(sf, range(1, 31))
print(list(m))

a.

1

b.

29

c.

6

d.

10

Posted under Python

Answer: (d).10

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following numbers will not be a part of the output list of the code shown below?