Report Bug

Qus

What will be the output of the following Python code?

>>> s={5,6}  >>> s*3
Qusनिम्नलिखित Python कोड का आउटपुट क्या होगा?


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


Solution
A. Error as unsupported operand type for set data type



Explanation
The multiplication operator isn’t valid for the set data type.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad