#1 Python Data Types : Lists

By Jaydeep Karale on youtube.com

More about this content:

Lists are related to arrays of programming languages like C, C++ or Java, but Python lists are by far more flexible and powerful than "classical" arrays. They do not have to be fixed size neither store data of similar type. A list is a collection of objects. To be more precise: A list in Python is an ordered group of items or elements. It's important to notice that these list elements don't have to be of the same type. It can be an arbitrary mixture of elements like numbers, strings, other lists and so on. The list type is essential for Python scripts and programs, in other words, you will hardly find any serious Python code without a list. The main properties of Python lists: •They are ordered •The contain arbitrary objects •Elements of a list can be accessed by an index •They are arbitrarily nestable, i.e. they can contain other lists as sublists •Variable size •They are mutable, i.e. the elements of a list can be changed https://thejdjournalcom.wordpress.com/