17What is the output of the following code?a = {1, 2, 3} a &= {2, 3, 5} print(sorted(a))A[5]B[2, 3]CErrorD[1, 2, 3, 5]View AnswerDiscussWorkspaceReportSaveEasy
18What is the output of the following code?s = {1, 2, 3} s.remove(2) print(sorted(s))A[1, 3]BErrorC[2]D[1, 2, 3]View AnswerDiscussWorkspaceReportSaveEasy
19Can a set contain a list?AOnly one listBNo — elements must be hashableCOnly empty listsDYesView AnswerDiscussWorkspaceReportSaveEasy
20Why can't a list be an element of a set?ASets only hold numbersBSets have a size limitCLists are unhashableDLists are orderedView AnswerDiscussWorkspaceReportSaveEasy