Lists
Lists This is a new serie of articles here at Python for beginners, that are supposed to be a starting point for completely beginners of Python. See it as a cheat sheet, reference, manual or whatever you want. The purpose is to very short write down the basics of Python. This page will describe how to use lists in Python. What is a List? The simplest data structure in Python and is used to store a list of values. Lists are collections of items (strings, integers, or even other lists). Each item in the list has an assigned index value. Lists are enclosed in [ ] Each item in a list is separated by a comma Unlike strings, lists are mutable, which means they can be changed. List Creation Lists are created using a comma separated list of values surrounded by square brackets. Lists hold a sequence of values (just like strings can hold a sequence of cha...