6What is the output of the following code?t = (1, 2, 3, 4, 5) print(t[1:4])A[2, 3, 4]B(1, 2, 3, 4)C(2, 3)D(2, 3, 4)View AnswerDiscussWorkspaceReportSaveEasy
7Which module provides namedtuple?AitertoolsBfunctoolsCcollectionsDtyping onlyView AnswerDiscussWorkspaceReportSaveMedium
8What is the output of the following code?t = () print(len(t), bool(t))AErrorB1 FalseC0 TrueD0 FalseView AnswerDiscussWorkspaceReportSaveEasy
9Why can a tuple be used as a dictionary key but a list cannot?ATuples are fasterBTuples have fixed length 2CTuples are immutable and hashableDLists are orderedView AnswerDiscussWorkspaceReportSaveEasy
10What is the output of the following code?a, b, c = (1, 2, 3) print(b)A(1, 2, 3)B3C2D1View AnswerDiscussWorkspaceReportSaveEasy