Examveda

Which of the following numbers will not be a part of the output list of the following Python code?
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

Answer: Option D


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python