Report Bug

QusWhich of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))? Qusनिम्नलिखित में से कौन सा प्रिंट निष्पादित करने पर कभी प्रदर्शित नहीं होगा (random.choice ({0: 1, 2: 3}))?


A. 0
B. 1
C. KeyError: 1
D. none of the mentioned


Solution
A. 0



Explanation
It will not print 0 but dict[0] i.e. 1 may be printed.
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