what are the lists in python..?
Answers
Answer:
In Python, list is a type of container in Data Structures, which is used to store multiple data at the same time. Unlike Sets, the list in Python are ordered and have a definite count. The elements in a list are indexed according to a definite sequence and the indexing of a list is done with 0 being the first index.
A list is a data structure in Python that is a mutable, or changeable, ordered sequence of elements. Each element or value that is inside of a list is called an item. Just as strings are defined as characters between quotes, lists are defined by having values between square brackets [ ] .
copy mara hai xD xD
Answer:
A list is a collection which is ordered and changeable. In Python lists are written with square brackets.[ ]
eg;-[1,2,"hello"],etc