Python Language List: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
print(len(l)) | print(len(l)) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Modify a List= | |||
==Modify Individual Elements== | |||
==Delete All Elements== | |||
=Organizatorium= | =Organizatorium= |
Revision as of 02:47, 17 February 2022
Internal
Overview
A list is a mutable sequence type that contains zero or more elements and whose elements can be of different types.
Access to a List
Size of a List
The number of elements is given by the len()
function:
l = [...]
print(len(l))
Modify a List
Modify Individual Elements
Delete All Elements
Organizatorium
l.append()