Posts

Showing posts from July, 2021

PYTHON LIST

Image
                                PYTHON  PROGRAMMING  --  LIST LIST:        1.   Lists  are used to store multiple items in a single variable.           2.It  is mutable. this means that once defined ,they can be changed.         3.List is the most versatile data-type available in Python that can be written as a collection of comma-separated values or items between square brackets.        4.A single list can contain different Data-Types such as integers ,strings ,as well as objects .     Example:        A=[23,'Hello',23.4,'y'] NESTED   LIST:           A  list  can contain any sort object, even another  list  (sublist), which in turn can contain sublists themselves, and so on.      Example...