← Back to the lesson: Lists
Access List Items
The exercise
Given list: numbers = [10, 20, 30, 40, 50]
Print the first element (10).
Print the last element (50).
Starter code
numbers = [10, 20, 30, 40, 50]
# Print first / Выведите первый
# Print last / Выведите последний
Write the code in the browser and run it — no installation needed.