🌐
W3Schools
w3schools.com › python › python_lists.asp
Python Lists
List is a collection which is ordered and changeable. Allows duplicate members. Tuple is a collection which is ordered and unchangeable. Allows duplicate members. Set is a collection which is unordered, unchangeable*, and unindexed.
🌐
Python documentation
docs.python.org › 3 › tutorial › datastructures.html
5. Data Structures — Python 3.14.3 documentation
We saw that lists and strings have many common properties, such as indexing and slicing operations. They are two examples of sequence data types (see Sequence Types — list, tuple, range). Since Python is an evolving language, other sequence data types may be added.
Discussions

Python list
Sure. A list is a data type, what is does is stores other types of data in order example = [I’m a string”, 2, 2.45, [“i’am”, “a” “list inside”, “another”], (“tuples”, 2,3), {“set”}, {“my” : “dictionary”}] Types are important to Python, a list is really important to Python because it’s ordered. Each list can be indexed and sliced because they are ordered. print(example[2]) >>>2.45 List start their index at 0 so [2] is the third element. But the last item is… print(example[-1]) >>>{“my”, “dictionary} We can slice them further. print(example[1:4]) #print 2nd to 5th element. >> [2, 2.45, [“i’am”, “a” “list inside”, “another”]] Slicing format example[start:stop:step] and we can go further if we know it’s list and lists, print(example[4][2]) >>>”list inside” Step will skip x amount hint in the list i.e. every 4th element. This can be done negatively as well. And reverse the list. We can loop directly through list… for element in example: if element == 2: break print(“No 2 in the list”) Or check with in if 2 in example: print(“There is a 2”) List can have comprehensions, we loved them so much we made them easier to make list_of_squares = [number**2 for number in range(5)] Lists are great because like all types they have useful methods. Such as, sort(), .append(), .insert(). You can easy check how many elements there are with len(). And since lists in Python can hold anything, anything, you can do a lot of complex requests coming from them. Lists are great for…loops. We want to do the same thing to a bunch of other things. More on reddit.com
🌐 r/learnpython
3
2
August 21, 2023
python - What does list[x::y] do? - Stack Overflow
Possible Duplicate: Good Primer for Python Slice Notation I've been reading over some sample code lately and I've read quite a few websites but I just can't seem to get the query right to give ... More on stackoverflow.com
🌐 stackoverflow.com
The Most Complete List of Legally Free Python Books (Updated 2021)
Wheres the list of illegally free python books More on reddit.com
🌐 r/Python
70
1417
December 15, 2020
Python script for interfaces into a string / list... skip first line?
split_interface_list = interface_list.splitlines()[1:] Above is a simple builtin python list slicing removing the first entry in the list by saying "I want to keep the the 1st element and everything behind it". The 0th element in the list contains the "show int status" and is therefore removed. An alternative way of doing the same thing without the unnecessary "split_interface_list" variable: interface_list = crt.Screen.ReadString(readlines) for interface in interface_list.splitlines()[1:]: print(interface) https://www.geeksforgeeks.org/python-list-slicing/ Edit: got bored so rewrote the script: def main(): '''Checking that terminal is live''' crt.Screen.Synchronous = True crt.Screen.Send("\n") crt.Screen.WaitForString("#") hostname = crt.Screen.Get(crt.Screen.CurrentRow, 0, crt.Screen.CurrentRow, 25).strip() '''Show interface status''' crt.Screen.Send("show interface status | include Eth\n") interface_output = crt.Screen.ReadString(hostname, 5) for interface in interface_output.split("\n")[1:]: try: port, desc, status, vlan, duplex, speed, type = interface.split() crt.Dialog.MessageBox(port) except ValueError: continue main() More on reddit.com
🌐 r/SecureCRT
6
1
September 27, 2021
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-lists
Python Lists - GeeksforGeeks
In Python, a list is a built-in data structure that can hold an ordered collection of items.
Published   January 10, 2026
🌐
DigitalOcean
digitalocean.com › community › tutorials › understanding-lists-in-python-3
Understanding Lists in Python 3 | DigitalOcean
August 20, 2021 - Lists are great to use when you want to work with many related values. They enable you to keep data together that belongs together, condense your code, and perform the same methods and operations on multiple values at once. When thinking about Python lists and other data structures that are types of collections, it is useful to consider all the different collections you have on your computer: your assortment of files, your song playlists, your browser bookmarks, your emails, the collection of videos you can access on a streaming service, and more.
🌐
Google
developers.google.com › google for education › python › python lists
Python Lists | Python Education | Google for Developers
January 23, 2026 - Python's built-in list type is defined using square brackets [ ] and elements are accessed using zero-based indexing.
🌐
Flexiple
flexiple.com › python › list-of-lists-python
List of Lists in Python - Flexiple
March 17, 2022 - How to Create a List of Lists in Python?List of Lists Using the append() Method in PythonCreate List of Lists Using List Comprehension in PythonAccess Elements in a List of Lists in PythonTraverse a List of Lists in PythonDelete an Element From a List of Lists in PythonDelete an Element From a List of Lists Using the pop() Method:Flatten List of Lists in PythonReverse List of Lists in PythonReversing the Order of Inner List in List of Lists in PythonSort List of Lists in PythonConcatenate Two Lists of Lists in PythonCopy List of Lists in Python
🌐
Substack
mostlypython.substack.com › p › python-lists-a-closer-look
Python Lists: A closer look - by Eric Matthes
January 5, 2023 - It’s sometimes referred to more generally as a collection, but sequence is a better term because a list is an ordered collection. How we name something is important because an accurate name tells us what we can do with that thing. What would you expect to be able to do with a sequence? You’d probably expect to be able to create a sequence, grab items from it, add more items to it, remove some items, change the order of the items, and more. In Python, you can do all of these operations with most sequences, including lists.
Find elsewhere
🌐
Python
python.org › ftp › python › doc › quick-ref.1.3.html
A Python Quick Reference
October 30, 1995 - argv -- The list of command line arguments passed to a Python script. sys.argv[0] is the script name. builtin_module_names -- A list of strings giving the names of all modules written in C that are linked into this interpreter. check_interval -- How often to check for thread switches or signals (measured in number of virtual machine instructions) exc_type exc_value exc_traceback -- Set when in an exception handler.
🌐
Reddit
reddit.com › r/learnpython › python list
r/learnpython on Reddit: Python list
August 21, 2023 -

Can someone give me a break down on python lists I'm not understanding

Top answer
1 of 3
6
Sure. A list is a data type, what is does is stores other types of data in order example = [I’m a string”, 2, 2.45, [“i’am”, “a” “list inside”, “another”], (“tuples”, 2,3), {“set”}, {“my” : “dictionary”}] Types are important to Python, a list is really important to Python because it’s ordered. Each list can be indexed and sliced because they are ordered. print(example[2]) >>>2.45 List start their index at 0 so [2] is the third element. But the last item is… print(example[-1]) >>>{“my”, “dictionary} We can slice them further. print(example[1:4]) #print 2nd to 5th element. >> [2, 2.45, [“i’am”, “a” “list inside”, “another”]] Slicing format example[start:stop:step] and we can go further if we know it’s list and lists, print(example[4][2]) >>>”list inside” Step will skip x amount hint in the list i.e. every 4th element. This can be done negatively as well. And reverse the list. We can loop directly through list… for element in example: if element == 2: break print(“No 2 in the list”) Or check with in if 2 in example: print(“There is a 2”) List can have comprehensions, we loved them so much we made them easier to make list_of_squares = [number**2 for number in range(5)] Lists are great because like all types they have useful methods. Such as, sort(), .append(), .insert(). You can easy check how many elements there are with len(). And since lists in Python can hold anything, anything, you can do a lot of complex requests coming from them. Lists are great for…loops. We want to do the same thing to a bunch of other things.
2 of 3
1
Thank you so much this has really helped
🌐
Python
python.org › community › lists
Mailing lists | Python.org
Google Groups archive of comp.lang.python.announce ... The tutor mailing list is for users who want to ask questions about learning computer programming with Python.
🌐
W3Schools
w3schools.com › python › python_lists_methods.asp
Python - List Methods
Python has a set of built-in methods that you can use on lists.
🌐
Mimo
mimo.org › glossary › python › lists
Python List: Syntax and Examples [Python Tutorial]
Lists are mutable and can include elements of any type, including booleans, integers, strings, dictionaries, or other lists. A Python list is an ordered and changeable (mutable) collection that stores items inside square brackets [], separated by commas.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › beginner questions
Multiple versions of python installed? - Linux Mint Forums
May 8, 2021 - Right, as I suspected you installed Python 3.9 through the deadsnakes PPA. ... Active apt repos in: /etc/apt/sources.list.d/deadsnakes-ppa-focal.list 1: deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main I would recommend removing this.
🌐
Python documentation
docs.python.org › 3 › library › functions.html
Built-in Functions — Python 3.14.3 documentation
5 days ago - The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.,,,, Built-in Functions,,, A, abs(), aiter(), all(), a...
🌐
Purple Frog Systems
purplefrogsystems.com › home › python lists – what do i need to know?
Python Lists – What do I need to know? - Purple Frog Systems
July 22, 2025 - In this post, we’ll cover everything you need to know about Python lists: what they are, how they work, and how to use them efficiently. What is a Python List? A list is a mutable, ordered, heterogeneous collection of items.
🌐
Python documentation
docs.python.org › 3 › tutorial › introduction.html
3. An Informal Introduction to Python — Python 3.14.3 documentation
Python knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as a list of comma-separated values (items) between square brackets.
🌐
w3resource
w3resource.com › python › python-list.php
Understanding Python Lists: A Comprehensive Guide
A list is a container which holds comma-separated values (items or elements) between square brackets where items or elements need not all have the same type.
🌐
Programiz
programiz.com › python-programming › list
Python List (With Examples)
December 30, 2025 - Python lists store multiple data together in a single variable. In this tutorial, we will learn about Python lists (creating lists, changing list items, removing items, and other list operations) with the help of examples.
🌐
Codecademy
codecademy.com › docs › python › lists
Python | Lists | Codecademy
April 21, 2023 - A list in Python is a sequence data type used for storing a comma-separated collection of objects in a single variable. Lists are always ordered and can contain different types of objects (strings, integers, booleans, etc.).