# ayyamrevanth/python-practice-problems architecture

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

- Interactive diagram: https://gitdiagram.com/ayyamrevanth/python-practice-problems
- Repository: https://github.com/ayyamrevanth/python-practice-problems

## Overview

Python-Practice-Problems is a collection of independent Python practice scripts, not a unified application. The usual workflow is to run one script, enter a value or list, and see a calculated result printed; Week 2 also demonstrates function-based solutions. The graph groups the exercises by topic and shows only input-to-script relationships visible in the excerpts. The README is only a title, and no shared runtime, persistence, or connections between exercises are documented.

Main entry points: [`Week 1/CountDivisorsEfficiently.py`](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/CountDivisorsEfficiently.py) (Divisors and GCD), [`Week 1/primNum.py`](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/primNum.py) (Prime checks), [`Week 2/ThirdLageDistinctDigitFun.py`](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/ThirdLageDistinctDigitFun.py) (Digit extremes), [`Week 2/ArmstrongNumFun.py`](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/ArmstrongNumFun.py) (Armstrong and strong)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_numeric["Numeric exercises"]
  node_basic_arithmetic["Arithmetic and sequences"]
  node_divisor_gcd["Divisors and GCD"]
  node_prime_check["Prime checks<br/>[primNum.py]"]
  node_factorial_calc["Factorials<br/>[FactorialFun.py]"]
  node_number_properties["Number properties<br/>[PerfectNumber.py]"]
end

subgraph group_digits["Digit exercises"]
  node_digit_sums["Digit sums and products<br/>[sumOfdigits.py]"]
  node_digit_counts["Digit counts and frequency<br/>[CountingDigits.py]"]
  node_digit_extremes["Digit extremes"]
  node_number_transform["Reverse and palindrome<br/>[PalindromeFun.py]"]
  node_special_numbers["Armstrong and strong<br/>[ArmstrongNumFun.py]"]
end

subgraph group_lists["List exercises"]
  node_list_frequency["Frequency rankings"]
  node_repeating_values["Repeated values"]
  node_unique_values["Unique values"]
  node_single_occurrences["Occurrence searches"]
end

node_learner(("Learner"))

node_learner -->|"enters input"| node_divisor_gcd
node_learner -->|"enters input"| node_prime_check
node_learner -->|"enters input"| node_special_numbers
node_learner -->|"enters input"| node_digit_extremes

click node_basic_arithmetic "https://github.com/ayyamrevanth/python-practice-problems/tree/main/Week%201"
click node_divisor_gcd "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/CountDivisorsEfficiently.py"
click node_prime_check "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/primNum.py"
click node_factorial_calc "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/FactorialFun.py"
click node_number_properties "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/PerfectNumber.py"
click node_digit_sums "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/sumOfdigits.py"
click node_digit_counts "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/CountingDigits.py"
click node_digit_extremes "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/ThirdLageDistinctDigitFun.py"
click node_number_transform "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/PalindromeFun.py"
click node_special_numbers "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/ArmstrongNumFun.py"
click node_list_frequency "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/SecondHighestFrequencyList.py"
click node_repeating_values "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/FindAllRepeatingElements.py"
click node_unique_values "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/RemoveDuplicatesList.py"
click node_single_occurrences "https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/FirstNon-RepeatingElement.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_basic_arithmetic,node_divisor_gcd,node_prime_check,node_factorial_calc,node_number_properties toneBlue
class node_digit_sums,node_digit_counts,node_digit_extremes,node_number_transform,node_special_numbers toneAmber
class node_list_frequency,node_repeating_values,node_unique_values,node_single_occurrences toneMint
class node_learner toneIndigo
```

## Components

### Numeric exercises

- [Arithmetic and sequences](https://github.com/ayyamrevanth/python-practice-problems/tree/main/Week%201): `Week 1`
- [Divisors and GCD](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/CountDivisorsEfficiently.py): `Week 1/CountDivisorsEfficiently.py`
- [Prime checks](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/primNum.py): `Week 1/primNum.py`
- [Factorials](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/FactorialFun.py): `Week 2/FactorialFun.py`
- [Number properties](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/PerfectNumber.py): `Week 1/PerfectNumber.py`

### Digit exercises

- [Digit sums and products](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/sumOfdigits.py): `Week 1/sumOfdigits.py`
- [Digit counts and frequency](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%201/CountingDigits.py): `Week 1/CountingDigits.py`
- [Digit extremes](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/ThirdLageDistinctDigitFun.py): `Week 2/ThirdLageDistinctDigitFun.py`
- [Reverse and palindrome](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/PalindromeFun.py): `Week 2/PalindromeFun.py`
- [Armstrong and strong](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/ArmstrongNumFun.py): `Week 2/ArmstrongNumFun.py`

### List exercises

- [Frequency rankings](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/SecondHighestFrequencyList.py): `Week 2/SecondHighestFrequencyList.py`
- [Repeated values](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/FindAllRepeatingElements.py): `Week 2/FindAllRepeatingElements.py`
- [Unique values](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/RemoveDuplicatesList.py): `Week 2/RemoveDuplicatesList.py`
- [Occurrence searches](https://github.com/ayyamrevanth/python-practice-problems/blob/main/Week%202/FirstNon-RepeatingElement.py): `Week 2/FirstNon-RepeatingElement.py`

### Other components

- **Learner**

## Connections

- Learner → Divisors and GCD: enters input (evidence: `Week 1/CountDivisorsEfficiently.py`)
- Learner → Prime checks: enters input (evidence: `Week 1/primNum.py`)
- Learner → Armstrong and strong: enters input (evidence: `Week 2/ArmstrongNumFun.py`)
- Learner → Digit extremes: enters input (evidence: `Week 2/ThirdLageDistinctDigitFun.py`)
