Quiz doubts in Quiz 5 regarding Dicts and set Question No: 7

I have run this code and checked as well. 1st option was giving error while 2nd option was giving output

1 Like

@shams55663377
Why second option is correct because:

If you check the type of variable d in the second option it will show set() type so it is an invalid option.

1 Like