List Methods
Learn useful list methods such as append, remove and sort.
Learn by experimenting
Study the Python code, run it, change values and observe the output. Practical experimentation is an important part of learning programming.
Python Code
Python runs directly in your browser.
numbers = [5, 2, 8, 1] numbers.append(10) numbers.sort() print(numbers)
Python Output
Program output appears here.
Test your understanding
Choose the best answer.
Which Python structure stores key-value pairs?