0
Why is this python code gives me a key error?
aLst={âaâ:1,âbâ:2,âcâ:3} print(aLst[âaâ,âbâ])
2 Answers
+ 6
Because there is no key as ['a','b']
print(aLst['a'])
print(aLst['b'])
+ 1
Add fact you can't have two key to one data
aLst={âaâ:1,âbâ:2,âcâ:3} print(aLst[âaâ,âbâ])