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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started