Examveda

What will be the output of the following Python code?
>>> s={5,6}
>>> s*3

A. Error as unsupported operand type for set data type

B. {5,6,5,6,5,6}

C. {5,6}

D. Error as multiplication creates duplicate elements which isn't allowed

Answer: Option A


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python