# mj-20-4/practice architecture

> Architecture diagram of the GitHub repository mj-20-4/practice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mj-20-4/practice
- Repository: https://github.com/mj-20-4/practice

## Overview

This repository is a collection of beginner Python practice scripts, not an integrated application. The learner’s workflow is to run a standalone example and observe its output; examples cover language fundamentals, object-oriented programming, file handling, and modules. The only evidenced cross-file runtime relationship is the module demo importing math_utils. Most scripts are independent, so the graph does not imply a shared execution pipeline.

Main entry points: [`week0/OOP/modules_packages/main.py`](https://github.com/mj-20-4/practice/blob/main/week0/OOP/modules_packages/main.py) (Module Import Demo), [`week0/OOP/modules_packages/math_utils.py`](https://github.com/mj-20-4/practice/blob/main/week0/OOP/modules_packages/math_utils.py) (Math Utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Python Fundamentals"]
  node_datatypes["Data Types<br/>[datatypes.py]"]
  node_demo["Basic Demo<br/>[demo.py]"]
  node_functions["Function Examples<br/>[func.py]"]
  node_input["Input and Comments"]
  node_loops["Loops<br/>[loops.py]"]
  node_strings["String Operations"]
  node_conversions["Type Conversion"]
end

subgraph group_oop["Object-Oriented Python"]
  node_basics["OOP Basics"]
  node_dataclasses["Dataclasses<br/>[dataclasses.py]"]
  node_dunder["Dunder Methods<br/>[dunder_methods.py]"]
  node_getters["Getters and Setters<br/>[getter_setter.py]"]
  node_inheritance["Inheritance and Polymorphism"]
  node_instanceattrs["Instance and Class Attributes"]
  node_methods["Methods<br/>[methods.py]"]
  node_mro["Multiple Inheritance"]
  node_objattrs["Object and Class Methods"]
  node_decorators["Decorators<br/>[decorator.py]"]
  node_generators["Generators<br/>[generator.py]"]
  node_iterators["Iterators<br/>[iterators.py]"]
end

subgraph group_files["File Handling"]
  node_csv["CSV Examples<br/>[csv.py]"]
  node_file_read["Reading Files<br/>[open_file.py]"]
  node_paths["Path Handling<br/>[path_handling.py]"]
  node_file_write["Writing Files"]
end

subgraph group_modules["Modules and Utilities"]
  node_module_demo["Module Import Demo<br/>[main.py]"]
  node_math_utils["Math Utilities<br/>[math_utils.py]"]
end

node_learner(("Learner"))

node_module_demo -->|"imports and calls"| node_math_utils

click node_datatypes "https://github.com/mj-20-4/practice/blob/main/week0/datatypes.py"
click node_demo "https://github.com/mj-20-4/practice/blob/main/week0/demo.py"
click node_functions "https://github.com/mj-20-4/practice/blob/main/week0/func.py"
click node_input "https://github.com/mj-20-4/practice/blob/main/week0/input-and-comments.py"
click node_loops "https://github.com/mj-20-4/practice/blob/main/week0/loops.py"
click node_strings "https://github.com/mj-20-4/practice/blob/main/week0/string-oprations.py"
click node_conversions "https://github.com/mj-20-4/practice/blob/main/week0/typeconversion%26casting.py"
click node_basics "https://github.com/mj-20-4/practice/tree/main/week0/OOP/basics"
click node_dataclasses "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/dataclasses.py"
click node_dunder "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/dunder_methods.py"
click node_getters "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/getter_setter.py"
click node_inheritance "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/inheritance_encapsulatn_polymorphism.py"
click node_instanceattrs "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/instance_class_attri.py"
click node_methods "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/methods.py"
click node_mro "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/multiple_inheritance_MRO.py"
click node_objattrs "https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/obj_cls_attri_methods.py"
click node_decorators "https://github.com/mj-20-4/practice/blob/main/week0/OOP/decorator.py"
click node_generators "https://github.com/mj-20-4/practice/blob/main/week0/OOP/generator.py"
click node_iterators "https://github.com/mj-20-4/practice/blob/main/week0/OOP/iterators.py"
click node_csv "https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/csv.py"
click node_file_read "https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/open_file.py"
click node_paths "https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/path_handling.py"
click node_file_write "https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/write_append_file.py"
click node_module_demo "https://github.com/mj-20-4/practice/blob/main/week0/OOP/modules_packages/main.py"
click node_math_utils "https://github.com/mj-20-4/practice/blob/main/week0/OOP/modules_packages/math_utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_datatypes,node_demo,node_functions,node_input,node_loops,node_strings,node_conversions toneBlue
class node_basics,node_dataclasses,node_dunder,node_getters,node_inheritance,node_instanceattrs,node_methods,node_mro,node_objattrs,node_decorators,node_generators,node_iterators toneAmber
class node_csv,node_file_read,node_paths,node_file_write toneMint
class node_module_demo,node_math_utils toneRose
class node_learner toneIndigo
```

## Components

### Python Fundamentals

- [Data Types](https://github.com/mj-20-4/practice/blob/main/week0/datatypes.py): `week0/datatypes.py`
- [Basic Demo](https://github.com/mj-20-4/practice/blob/main/week0/demo.py): `week0/demo.py`
- [Function Examples](https://github.com/mj-20-4/practice/blob/main/week0/func.py): `week0/func.py`
- [Input and Comments](https://github.com/mj-20-4/practice/blob/main/week0/input-and-comments.py): `week0/input-and-comments.py`
- [Loops](https://github.com/mj-20-4/practice/blob/main/week0/loops.py): `week0/loops.py`
- [String Operations](https://github.com/mj-20-4/practice/blob/main/week0/string-oprations.py): `week0/string-oprations.py`
- [Type Conversion](https://github.com/mj-20-4/practice/blob/main/week0/typeconversion%26casting.py): `week0/typeconversion&casting.py`

### Object-Oriented Python

- [OOP Basics](https://github.com/mj-20-4/practice/tree/main/week0/OOP/basics): `week0/OOP/basics`
- [Dataclasses](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/dataclasses.py): `week0/OOP/basics/dataclasses.py`
- [Dunder Methods](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/dunder_methods.py): `week0/OOP/basics/dunder_methods.py`
- [Getters and Setters](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/getter_setter.py): `week0/OOP/basics/getter_setter.py`
- [Inheritance and Polymorphism](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/inheritance_encapsulatn_polymorphism.py): `week0/OOP/basics/inheritance_encapsulatn_polymorphism.py`
- [Instance and Class Attributes](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/instance_class_attri.py): `week0/OOP/basics/instance_class_attri.py`
- [Methods](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/methods.py): `week0/OOP/basics/methods.py`
- [Multiple Inheritance](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/multiple_inheritance_MRO.py): `week0/OOP/basics/multiple_inheritance_MRO.py`
- [Object and Class Methods](https://github.com/mj-20-4/practice/blob/main/week0/OOP/basics/obj_cls_attri_methods.py): `week0/OOP/basics/obj_cls_attri_methods.py`
- [Decorators](https://github.com/mj-20-4/practice/blob/main/week0/OOP/decorator.py): `week0/OOP/decorator.py`
- [Generators](https://github.com/mj-20-4/practice/blob/main/week0/OOP/generator.py): `week0/OOP/generator.py`
- [Iterators](https://github.com/mj-20-4/practice/blob/main/week0/OOP/iterators.py): `week0/OOP/iterators.py`

### File Handling

- [CSV Examples](https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/csv.py): `week0/OOP/File_Handling/csv.py`
- [Reading Files](https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/open_file.py): `week0/OOP/File_Handling/open_file.py`
- [Path Handling](https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/path_handling.py): `week0/OOP/File_Handling/path_handling.py`
- [Writing Files](https://github.com/mj-20-4/practice/blob/main/week0/OOP/File_Handling/write_append_file.py): `week0/OOP/File_Handling/write_append_file.py`

### Modules and Utilities

- [Module Import Demo](https://github.com/mj-20-4/practice/blob/main/week0/OOP/modules_packages/main.py): `week0/OOP/modules_packages/main.py`
- [Math Utilities](https://github.com/mj-20-4/practice/blob/main/week0/OOP/modules_packages/math_utils.py): `week0/OOP/modules_packages/math_utils.py`

### Other components

- **Learner**

## Connections

- Module Import Demo → Math Utilities: imports and calls (evidence: `week0/OOP/modules_packages/main.py`)
