What Will Be The Output Of The Following Python Codep Pre #490
What will be the output of the following Python code?</p> <pre><code class="language-python"> a = [5,5,6,7,7,7] b = set(a) def test(lst): if lst in b: return 1 else: return 0 for i in filter(test, a): print(i,end=" ") </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Sets - Python Sets - Quiz No.1.