Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Data Structures – Lists | Python Fundamentals lesson | BraveProgrammer
  1. Courses
  2. /
  3. Python Fundamentals

Lesson 13 of 55

·Python

Data Structures – Lists

20 minutes

Course progress24%

What you'll learn

Keep these ideas in mind as you work through the lesson.

3 points
  • Lists are ordered collections, mutable in place.
  • Indexing uses zero‑based integers; negative indices count from the end.
  • Common methods: `append()`, `extend()`, `insert()`, `remove()`, `pop()`, `clear()`.

Data Structures – Lists

Lists are ordered, mutable sequences. They’re highly versatile and support many built‑in methods.

colors = ['red', 'green', 'blue']
colors.append('yellow')    # add to the end
print(colors[1])       # green
print(colors[-1])      # yellow (last item)
colors.remove('red')  # delete first occurrence of 'red'
print(colors)          # ['green', 'blue', 'yellow']

Because lists are mutable, you can change, add, or remove elements at any time.

Make it stickPractice what you've learned1 quiz · 5 practical tests · Optional activities from Python FundamentalsBrowse activities
Previous lessonScope and NamespaceContinue to lesson 14List ComprehensionsBack to Python Fundamentals curriculum