What Will Be The Output Of The Following Python Functionp Pre #533
What will be the output of the following Python function?</p> <pre><code class="language-python">{x for x in 'abc'} {x*3 for x in 'abc'}</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.5.
What will be the output of the following Python function?
{x for x in 'abc'} {x*3 for x in 'abc'}
{abc} aaa bbb ccc
abc abc abc abc
{‘a’, ‘b’, ‘c’} {‘aaa’, ‘bbb’, ‘ccc’}
{‘a’, ‘b’, ‘c’} abc abc abc