Practical implementation of Python sequence data structures, covering list and tuple operations, multidirectional slicing, and built-in methods.
A personal Python learning repository documenting my progress through Lecture 03: Lists & Tuples. This collection includes structured exercises, data structure manipulation practice, and an interactive student grade manager project.
This repository contains my practice work for Lecture 03, focusing on working with lists and tuples, two fundamental data structures in Python.
- List creation and initialization
- Accessing list elements
- List concatenation and repetition
- Nested lists
- List mutability
- Adding elements:
append(),insert(),extend() - Removing elements:
remove(),pop(),clear() - Sorting and reversing:
sort(),reverse(),sorted() - List slicing techniques
- Copying lists
- Tuple creation
- Accessing tuple elements
- Tuple immutability
- Single-element tuples
- Tuple concatenation
count()andindex()methods- Tuple slicing
- Converting between lists and tuples
- When to use tuples vs. lists
| File | Concepts Practiced | Questions |
|---|---|---|
01_list.py |
List Basics - Creating, Accessing, & Operations | 08 |
02_list_methods_slicing.py |
List Methods & Slicing(Positive, Negative, Step) | 10 |
03_tuples.py |
Tuples Basics - Creating, Accessing & Operations | 06 |
04_list_methods_slicing.py |
Tuples Methods & Slicing(+VE, -VE, Steps) | 04 |
05_mini_project.py |
Student Grade Manager | Mini Project |
lecture-03/
│
├── 📝 01_list.py # List Fundamentals & Operations
├── 📝 02_list_methods_slicing.py # List Methods & Slicing Techniques
├── 📝 03_tuple.py # Tuple Fundamentals & Properties
├── 📝 04_tuple_methods_slicing.py # Tuple Methods & Slicing
└── 🚀 05_mini_project.py # 📊 Student Grade Manager
By completing this lecture, I have learned to:
- ✅ Create and manipulate lists effectively
- ✅ Use list methods for adding, removing, and organizing data
- ✅ Apply slicing techniques on lists
- ✅ Understand when to use mutable vs. immutable structures
- ✅ Work with tuples for fixed data
- ✅ Perform operations on both lists and tuples
- ✅ Build practical applications using data structures
My learning methodology focuses on:
- Understanding core concepts before jumping into code
- Attempting problems independently to build problem-solving skills
- Running & testing programs regularly in the terminal
- Experimenting by modifying values and inputs to observe behavior
- Debugging errors step-by-step to understand root causes
- Documenting learnings and observations within clean comments and code documentation
An interactive program that manages student grades using lists and tuples with various data operations.
- Add and store student grades
- Calculate average
- Find highest and lowest scores
- Display grade satistics
- Sort and organize data
- List & Tuple Operations
- Data Manipulation & Sorting
- Statistical Calculations
- Lecture 01 — Python Fundamentals ✅ COMPLETED
- Lecture 02 — Strings & Conditionals ✅ COMPLETED
- Lecture 03 — Lists & Tuples ✅ COMPLETED
- Lecture 04 — Happening soon
- Lecture 05 — Happening soon
- Lecture 06 — Happening soon
- Lecture 07 — Happening soon
- Lecture 08 — Happening soon
- Lecture 09 — Happening soon