Question-111: Which of the following is/are valid list?
- emptyList=[]
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: A,B,C,D,E
Exp:
Data Collections
- Using single variable, you can hold more than one values even up to many thousands of values.
- Almost, every programming language has this feature.
- Variable which holds a single value is called Scalar.
- You can create a List which can hold 0 or more than 0 values.
Creating sample Lists
emptyList=[] fullList=[0,1,2,5,100] listOfNames=['Amit' , 'John' , 'Venkat' , 'Simon' ] You can access to full explanation to question and answer from this page. |
- Each element in a list can be accessed by its position.
-
You can access to full explanation to question and answer from this page.