DEV Community

Cover image for list functions (PYTHON3)
francnstein
francnstein

Posted on

list functions (PYTHON3)

So it I described it, I would say list allow you to do just that. Create a list of things. Simple yup!

List in Python are ordered and have a definite count. The elements in a list are indexed according to a definite sequence and the indexing of a list is done with 0 being the first index. Each element in the list has its definite place in the list, which allows duplicating of elements in the list, with each element having its own distinct place and credibility.

Note- Lists are a useful tool for preserving a sequence of data and further iterating over it.

--------------------------------------

ex.

numbers = list(range(20))
print(numbers)

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]

FRANCNSTEIN | Created 𝗐𝗂𝗍𝗁 ❤

Top comments (0)