Doubt regarding 2 questions in Quiz 3

@shivrajrtandale98 I have a doubt regarding questions 2 and 5. I was asked to enquire about it in a private chat with you ad the quiz deadline is still at hand. can i post it here? please advise.

1 Like


Yes sure.
You can post it here.

Sure… @venki.891981 Post here…

  1. My questions in Quiz-3: Loops | Strings

    I am getting 1\n2 as a result, can you please explain why is this?
    I understood my mistake in Question 2.
  2. My question in Quiz-4: List | Tuple
    Question 7 has both the inner lists have disappeared while they as full have to be assigned to l2
    i worked it out to be the following:

    the second option was closest,so i marked it and luckily got marks.
    thank you,
    Venkataramanan A
1 Like

Hello @venki.891981 It is good to know that you are understanding your mistakes. For Q7 in Quiz 4 in your case L1 is empty & L2 contains two sublists. For loop is accessing each element of sublist & extends that elements in L1. In the first iteration, list1 = [1, 2, 3] , so l1 =[1, 2, 3] . In the second iteration, list1 = [4, 5, 6] , so l2 will become [1, 2, 3, 4, 5, 6].