python example python example 2

Welcome to

Lists

Lists are used to store multiple items of the same data type. Lists are created using square brackets and are ordered, changeable and allow duplicates. By ordered it means that the items within the list are in a defined order that will not change. By changed it means we can change, add and remove any and all items in a list after it has been created. Lists length can be determined using the len() function.