GIAC
GPYC · Question #1
GPYC Question #1: Real Exam Question with Answer & Explanation
Sign in or unlock GPYC to reveal the answer and full explanation for question #1. The question stem and answer options stay visible for context.
Question
Which of the following will be the value of the variable y?
x = {'a': [1, 2, [3,4]], 'b': [[5, 6], 7]} y = x['b'][0][1]
Options
- A7
- By has no value. The following error occurred: IndexError: list index out of range
- C6
- Dy has no value. The following error occurred: KeyError: 'b'
Unlock GPYC to see the answer
You've previewed enough free GPYC questions. Unlock GPYC for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.