Q18Multiple correct3 Marks7 Aug 2022
Which of the following code blocks will execute without raising an error?
**Code-1**
```
S = set()
S.add(1)
S.add(2)
print(S[0])
```
**Code-2**
```
D = {}
D[0] = 'zero'
D[0] = 'error'
```
Programming in Python · Week 8