English

State True or False: A Python List must always contain all its elements of same data typе. - Computer Science (Python)

Advertisements
Advertisements

Question

State True or False:

A Python List must always contain all its elements of same data typе.

True or False
Advertisements

Solution

This statement is false.

Explanation:

Python lists allow the storage of different types of data.

For Instance:

L = [1,2,3,4]
L1 = [“Abc”,12,15.5,True]
shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×