15What is the output of the following code?a = [1, 2, 3, 4] print(a[-2:], a[:-2])A[3] [1, 2]B[3, 4] [1, 2]CErrorD[4] [1, 2, 3]View AnswerWorkspaceReportSaveEasy