already passed 2025
.append(value) - correct answer ✔adds a value to the end of a list
.insert(posiiton, value) - correct answer ✔Adds a new value at a specific
position in the list
.pop() - correct answer ✔removes and returns the last value in the list
.remove(value) - correct answer ✔removes the first instance of a specific
value from the list
.sort(key=None, reverse=False) - correct answer ✔Sorts the items of the list
in place. The arguments can be used for sort customization
slicing - correct answer ✔end index - 1
"r" - correct answer ✔Opens a file for reading. This will be the mode if not
specified
"w" - correct answer ✔Opens a file for writing, truncating the file if it exists
(effectively starts a new file and replaces the old file)
"x" - correct answer ✔Opens a file for exclusive creation. The .open()
method will fail if the file already exists (which can be handled as an
exception)