HomeDictionaries Predict the output: dct = {} dct[1] = 1 dct['1'] = 2 2 Comments Facebook Twitter Q. Predict the output:dct = {}dct[1] = 1dct['1'] = 2dct[1.0] = 4sum = 0for k in dct: print(k, sum) sum += dct[k]print (sum)Answer =1 01 46>>>
how ?
ReplyDeletehow ?
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )