Skip to content

sehrishjaved19/learn-python

🐍 Learn-Python Repository

This repository, learn-Python, is my personal learning archive for Python programming. As a Computer Science student, I created this space to track my progress, practice coding concepts, and improve my problem-solving skills. It includes topic-wise Python programs, examples, and exercises that represent my learning journey step by step.


Each folder includes:

  • 🧩 Topic-based Python scripts
  • 🧠 practice_scripts to reinforce learning
  • 📘 README.md explaining the concepts covered

🧭 Table of Contents

No. Topic Description
00 Introduction Learn Python basics: syntax, variables, and input/output.
01 Strings Master string operations, slicing, and formatting.
02 Lists & Tuples Explore collection types and sequence operations.
03 Dictionaries & Sets Learn mapping and unique data handling.
04 Operators Understand arithmetic, comparison, logical, and assignment operators.
05 Conditionals & Loops Write decision-making and iterative programs.
06 Functions & Recursion Create reusable functions and recursive logic.
07 File I/O Learn to read, write, and manipulate text files in Python.
08 Exceptions & Debugging Handle runtime errors and apply debugging techniques.
09 Modules & Packages Work with Python’s built-in modules and modular code organization.

🗂️ Folder Structure

learn-python/
│
├── 00_Introduction/
│   ├── 01_hello_world.py
│   ├── 02_comments_and_modules.py
│   ├── 03_variables.py
│   ├── 04_datatypes.py
│   ├── 05_typecasting.py
│   ├── 06_input_output.py
│   ├── practice_scripts/
│   └── README.md
│
├── 01_Strings/
│   ├── 01_string_basics.py
│   ├── 02_string_concatenation.py
│   ├── 03_string_indexing_slicing.py
│   ├── 04_string_functions.py
│   ├── 05_fstrings_and_formatting.py
│   ├── 06_escape_sequences.py
│   ├── 07_escape_methods.py
│   ├── 08_strings_are_array.py
│   ├── practice_scripts/
│   └── README.md
│
├── 02_Lists_Tuples/
│   ├── 01_lists_basics.py
│   ├── 02_list_methods.py
│   ├── 03_tuples_basics.py
│   ├── 04_tuple_methods.py
│   ├── 05_unpacking.py
│   ├── practice_scripts/
│   └── README.md
│
├── 03_Dictionaries_Sets/
│   ├── 01_dictionary_basics.py
│   ├── 02_dictionary_methods.py
│   ├── 03_set_basics.py
│   ├── 04_set_methods.py
│   ├── 05_operations_on_sets.py
│   ├── practice_scripts/
│   └── README.md
│
├── 04_Operators/
│   ├── 01_arithmetic_operators.py
│   ├── 02_assignment_operators.py
│   ├── 03_comparison_operators.py
│   ├── 04_logical_operators.py
│   ├── 05_truth_tables.py
│   └── README.md
│
├── 05_Conditionals_Loops/
│   ├── 01_if_elif_else_ladder.py
│   ├── 02_match_case.py
│   ├── 03_while_loop.py
│   ├── 04_loop.py
│   ├── 05_for_loop.py
│   ├── 06_break_continue_statement.py
│   ├── 07_pass_statement.py
│   ├── practice_scripts/
│   └── README.md
│
├── 06_Functions_Recursion/
│   ├── 01_functions_basics.py
│   ├── 02_return_and_parameters.py
│   ├── 03_global_variables_functions.py
│   ├── 04_recursion_basics.py
│   ├── practice_scripts/
│   └── README.md
│
├── 07_File_IO/
│   ├── 01_file_basics.py
│   ├── 02_read_file.py
│   ├── 03_write_file.py
│   ├── 04_append_file.py
│   ├── 06_with_statement.py
│   ├── file.txt
│   ├── poem.txt
│   ├── word_search_in_file.py
│   └── README.md
│
├── 08_Exceptions_Debugging/
│   ├── 01_try_except.py
│   ├── 02_finally_else.py
│   ├── 03_raise_custom_errors.py
│   ├── 04_debugging_tips.py
│   └── README.md
│
├── 09_Modules_and_Packages/
│   ├── 01_built_in_modules.py
│   ├── 02_date_time_module.py
│   ├── 03_math_module.py
│   ├── 04_random_num.py
│   ├── 05_regex_module.py
│   └── README.md
│
├── LICENSE
├── README.md
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
└── .gitignore


💡 How to Use This Repository

  1. Clone or Download the repository:

    git clone https://github.com/your-username/learn-python.git
  2. Open in VS Code or any IDE.

  3. Navigate to the desired section (e.g., 03_Dictionaries_Sets/).

  4. Run each script in order and read the corresponding README.md.

  5. Practice with the exercises provided in the practice_scripts/ folders.


🧩 Requirements

  • Python 3.10 or above
  • A text editor or IDE (e.g., VS Code, PyCharm, Jupyter)
  • Basic command-line knowledge

🧱 Projects to be Included

🧮 Beginner Projects

  • Guess the Number
  • Snake, Water, Gun Game
  • Email Slicer
  • Simple Quiz App
  • Alarm Clock

⚙️ Utility Projects

  • File Organizer
  • To-Do App
  • Weather App

Each project reinforces real-world logic, syntax, and problem-solving.


📜 License

This repository is licensed under the MIT License — see the LICENSE file for details.


💬 Connect

Author: Sehrish Javed

GitHub: @sehrishjaved19

LinkedIn: Sehrish Javed

Twitter (X): @Sehrishjaved119


🌟 “Learning Python is not about syntax — it’s about logic, structure, and creativity. Build step by step, and code will soon feel like poetry.”


About

A hands-on repository documenting my Python learning journey — covering core concepts like variables, data types, strings, lists, dictionaries, loops, conditionals, and functions. Part of my step-by-step progress toward mastering programming fundamentals.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages