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

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. Python Fundamentals

Lesson 13 of 55 · Python

Data Structures – Lists

Duration: 20 minutes

Data Structures – Lists\n\nLists are ordered, mutable sequences. They’re highly versatile and support many built‑in methods.\n\npython\ncolors = ['red', 'green', 'blue']\ncolors.append('yellow') # add to the end\nprint(colors[1]) # green\nprint(colors[-1]) # yellow (last item)\ncolors.remove('red') # delete first occurrence of 'red'\nprint(colors) # ['green', 'blue', 'yellow']\n\n\nBecause lists are mutable, you can change, add, or remove elements at any time.\n

Previous: Scope and NamespaceNext: List Comprehensions