Which of the following numbers will not be a part of the output list of the following Python code?
Posted: Wed Jul 13, 2022 7:45 pm
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
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