6What is the output of the following code?a = [1, 2, 3] print(a.index(3), a.count(4))A2 1BErrorC2 0D3 0View AnswerDiscussWorkspaceReportSaveEasy
7What is the output of the following code?a = [1, 2, 3] b = a[:] b[0] = 99 print(a[0])A1B99CNoneDErrorView AnswerDiscussWorkspaceReportSaveMedium
8What is the output of the following code?a = [3, 1, 2] a.sort(reverse=True) print(a)A[3, 2, 1]B[1, 2, 3]C[2, 1, 3]DNoneView AnswerDiscussWorkspaceReportSaveEasy
9What is the output of the following code?a = [3, 1, 2] a.sort() print(a)A[1, 2, 3]B[3, 2, 1]C[3, 1, 2]DNoneView AnswerDiscussWorkspaceReportSaveEasy
10Which list method removes and returns the item at a given index?Adiscard()Bremove()Cpop()DdelView AnswerDiscussWorkspaceReportSaveMedium