Question: Given list1 = [30, 1, 2, 1, 0] and list2 = [1, 21, 13], what is the return value of each of the following statements?
Given list1 = [30, 1, 2, 1, 0] and list2 = [1, 21, 13], what is the
return value of each of the following statements?
list1 + list2 =
2 * list2 =
Which one is for making a loop between 1-10?
a) for number in range (1,11):
b) for number in range (1,10):
c) for number in range (1,12):
d) for number in range (2,11):
Which one is correct for loop?
a) for x in y:
b) for x>y:
c) for each x in y:
list[:] = [] What is this for?
a)It gives the number of elements in the list
b)It makes the list
c) It deletes all elements in the list
d) It is for adding new element to the list
list2 * 2 =
list1[1 : 3] =
list1[3] =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
