Skip to content

About

Practical implementation of Python sequence data structures, covering list and tuple operations, multidirectional slicing, and built-in methods.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Python_Exercises_Lec-03

Practical implementation of Python sequence data structures, covering list and tuple operations, multidirectional slicing, and built-in methods.


🎓 About

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.


📚 Overview

This repository contains my practice work for Lecture 03, focusing on working with lists and tuples, two fundamental data structures in Python.


📖 Topics Covered

✅ List Basics

  • List creation and initialization
  • Accessing list elements
  • List concatenation and repetition
  • Nested lists
  • List mutability

✅ List Methods & Slicing

  • Adding elements: append(), insert(), extend()
  • Removing elements: remove(), pop(), clear()
  • Sorting and reversing: sort(), reverse(), sorted()
  • List slicing techniques
  • Copying lists

✅ Tuple Basics

  • Tuple creation
  • Accessing tuple elements
  • Tuple immutability
  • Single-element tuples
  • Tuple concatenation

✅ Tuple Methods & Slicing

  • count()and index() methods
  • Tuple slicing
  • Converting between lists and tuples
  • When to use tuples vs. lists

📂 Practiced Files

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

📂 Repository Structure

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

🎯 Learning Objectives

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

💡 Practice Approach

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

🚀 Mini Project

📊 Student Grade Manager (05_mini_project.py)

An interactive program that manages student grades using lists and tuples with various data operations.

✨ Key Features

  • Add and store student grades
  • Calculate average
  • Find highest and lowest scores
  • Display grade satistics
  • Sort and organize data

💡 Concepts Applied

  • List & Tuple Operations
  • Data Manipulation & Sorting
  • Statistical Calculations

Current Lecture Status

  • 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

About

Practical implementation of Python sequence data structures, covering list and tuple operations, multidirectional slicing, and built-in methods.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages