QuestionQ135Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionHow many elements are contained in the L list? AoneBtwoCthreeDzeroShow AnswerAnswerExplanationrange(-1, -2) has the default step of 1, so it produces no values when counting upward from -1 toward an exclusive stop of -2. The list comprehension therefore creates an empty list.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion