Loading…
In Python, and in the list structures used across A-level and GCSE computer science, a list is a mutable sequence, meaning that once a list has been created its contents can be changed. The most direct way to alter one element is the bracket operator with an assignment, such as setting a single index to a new value.
You have opened your free Studybank topics for this month.