QuestionQ103Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat output is expected from the following code? A[4, 3, 2, 1]B[4, 3, 2]C[4, 3]DThe code is erroneous.Show AnswerAnswerExplanationA slice with a step of -1 moves backward. The stop index 0 is excluded, so indices 3, 2, and 1 are selected, producing [4, 3, 2].Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion