SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Y Daniel Lang
Chapter:
0.lists
Exercise:
Check Point
Question:8 | ISBN:978013274719 | Edition: 6

Question

Indicate true or false for the following statements:
(a) Every element in a list must have the same type.
(b) A list’s size is fixed after it is created.
(c) A list can have duplicate elements.
(d) The elements in a list can be accessed via an index operator.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

a) Every element in a list must have the same type.  false

list contain different data types

b)A list's size is fixed after it is created. false

a list is a mutable .so we can add ,delete elements in list .

c) A list can can have duplicate elements. true

python allows user to create a list with duplicate elements.

d)The elements in a list can be accessed via an index operator. true

we can access list elements using its index opearator[].

 

 

 

0 0

Discussions

Post the discussion to improve the above solution.