Skip to content

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.

License

Notifications You must be signed in to change notification settings

sehrishjaved19/Learn-Python

🐍 Learn-Python Repository

Welcome to the Learn-Python Repository — a complete, structured journey through Python programming, from beginner to advanced topics.
This repository is designed for learners who want to understand Python concept by concept, with each section containing well-documented scripts, exercises, and practical examples.


🚀 About This Repository

This repository serves as a hands-on Python learning path, organized into logical sections that build upon each other.
It starts with the basics — variables, data types, and loops — and gradually advances toward functions, file handling, object-oriented programming, and mini-projects.

Each folder includes:

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

Whether you’re a student, beginner developer, or self-learner, this repository helps you master Python through structured practice.


🧭 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.
10 Object-Oriented Programming Dive into classes, objects, inheritance, and encapsulation.
11 Mini Projects Build practical tools like To-Do apps, file organizers, and more. (working on it)

🗂️ Folder Structure

Python-code/
│
├── 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_Exercises/
│   └── 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_Exercises/
│   └── 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_Exercises/
│   └── 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_Exercises/
│   └── README.md
│
├── 04_Operators/
│   ├── 01_arithmetic_operators.py
│   ├── 02_assignment_operators.py
│   ├── 03_comparison_operators.py
│   ├── 04_logical_operators.py
│   ├── 05_truth_tables.py
│   ├── Practice_Exercises/
│   └── 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_Exercises/
│   └── README.md
│
├── 06_Functions_Recursion/
│   ├── 01_functions_basics.py
│   ├── 02_return_and_parameters.py
│   ├── 03_global_variables_functions.py
│   ├── 04_recursion_basics.py
│   ├── Practice_Exercises/
│   └── 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
│   └── 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
│
├── 10_Object_Oriented_Programming/
│   ├── 01_classes_objects.py
│   ├── 02_constructors_init.py
│   ├── 03_inheritance.py
│   ├── 04_class_methods.py
│   ├── 05_static_methods.py
│   ├── 06_dunder_methods.py
│   ├── 07_encapsulation_private.py
│   ├── 08_polymorphism.py
│   ├── Practice_Exercises/
│   └── README.md
│
├── 11_Mini_Projects/
│   ├── 01_guess_the_number.py
│   ├── 02_snake_water_gun.py
│   ├── 03_email_slicer.py
│   ├── 04_news_reader.py
│   ├── 05_alarm_clock.py
│   ├── 06_quiz_game.py
│   ├── Practice_Exercises/
│   └── README.md
│
├── LICENSE
├── README.md
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
└── .gitignore


🧠 Learning Objectives

By following this repository, you’ll learn to:

  • Understand core Python syntax and concepts.
  • Write clean, modular, and reusable Python code.
  • Apply problem-solving through loops, conditionals, and recursion.
  • Handle files and exceptions effectively.
  • Build foundational OOP (Object-Oriented Programming) skills.
  • Work with real-world mini projects that strengthen your portfolio.

💡 How to Use This Repository

  1. Clone or Download the repository:

    git clone https://github.com/your-username/Python-code.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_Exercises/ folders.


🧩 Requirements

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

Optional:

  • Internet connection for learning resources or module installations.

🧱 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.


🤝 Contributing

Contributions are welcome! If you’d like to add more exercises, fix code, or improve documentation:

  1. Fork this repository
  2. Create your feature branch (git checkout -b feature-name)
  3. Commit changes (git commit -m "Added new example")
  4. Push to the branch (git push origin feature-name)
  5. Open a Pull Request

📜 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

No packages published

Languages