- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
What type of error is returned by the following code :
a={'a' : "Apple", 'b' : "Banana" , 'c' : "Cat"}
print(a[1])

1.KeyError

2.KeyNotFoundError

3.NotFoundError

4.Syntax Error

Posted Date:-2021-12-06 17:24:27


More MCQS Questions and answers

Search