Nov-08-2017, 08:59 PM
hi. i have two questions that i am stuck with in dictionarys. First one,
di1={5:'K',3:'A',2:'R',7:'T',4:'G',6:'S'} di2={'GR':'Greece','IT':'Italy','ES':'Spain'} print(len(di2[xxxx]))it needs to replace xxx with something that print will output 6.
second,
di={'A':['a',41],'B':['b',42],'C':['c',43]} s=0 for i in di: s+=yyy print(s)need to replace yyy with something that will print 126
please i am asking for your help.