This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision |
184_notes:lists [2022/04/20 15:08] – woodsna1 | 184_notes:lists [2022/05/06 21:59] – woodsna1 |
---|
</code> | </code> |
| |
You can think of a list like a column in an excel spreadsheet, it has many fields that can each be filled with an object. You can also access each bucket in a list to update or retrieve the object within it. One way is by using list indexing. Indices in a Python list start at 0 for the first element: | You can think of a list like an excel spreadsheet, it has many rows (each representing an object), and each row has several columns (representing the attributes of the object). You can also access each bucket in a list to update or retrieve the object within it. One way is by using list indexing. Indices in a Python list start at 0 for the first element: |
| |
<code> | <code> |