Posts

Showing posts with the label LIST IN PYTHON

Python Lists

Image
Python Lists ..................................................................................................................................................... mylist = ["apple", "banana", "cherry"] ..................................................................................................................................................... List ..................................................................................................................................................... Lists are used to store multiple items in a single variable. Example Create a List: ..................................................................................................................................................... thislist = ["apple", "banana", "cherry"] print(thislist) OUTPUT is:  ['apple', 'banana', 'cherry'] ...............................................................................