MCQs > IT & Programming > Python > Output of following code snippet? def f(x): return x % 2 != 0 and x % 3 != 0 result=filter(f, range(1, 20)) print result

Python MCQs

What will be the output of following code snippet? def f(x): return x % 2 != 0 and x % 3 != 0 result=filter(f, range(1, 20)) print result

Answer

Correct Answer: [1, 5, 7, 11, 13, 17, 19]

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it