1.

Predict the output of the following code:class Match:#“Runs and Wickets”runs=281wickets=5def init (self,runs, wickets) :self.runs=runsself.wickets=wicketsprint “Runs scored are :” ,runsprint “Wickets taken are :” .wicketsprint “Test. do :”, Match. docprint “Test._name_ , Match. _name_print “Test_module_ , Match.__module_print “Test. _bases_ , Match._bases_print “Test._dict_ , Match. _diet_

Answer»

Runs scored are : 281

Wickets taken are : 5

Test._ do_ : None

Test._name_ : Match

Test._module_ : main

Test._bases_ : ()

Test. _diet_ : {‘ _module _’: ‘_ main_ ’, ‘_doc _’: None, ‘runs’: 281, ‘_init_ ’:

<function _init_ at 0x0000000002DDFBA8>, ‘wickets’: 5}



Discussion

No Comment Found