Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

How does selection differ from recruitment ?

Answered: 1 week ago