# TheAlgorithms/Python SLOC report

> As of 2026-10-21 (commit 6e03a48579ca), TheAlgorithms/Python contains 482,363 total lines: 127,292 code, 333,847 comments, 21,224 blank, across 1,657 files in 6 languages (top: Python 99.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

TheAlgorithms/Python has 127,292 source lines of code out of 482,363 total lines across 1,657 files, counted from the master ref at commit 6e03a48579ca by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving TheAlgorithms/Python to commit 6e03a48579ca, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 26.4% of all lines, comments represent 69.2%, and the repository averages 77 code lines per file. Python accounts for 99.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,578 | 150,204 | 125,964 | 5,123 | 19,117 |
| JSON | 2 | 910 | 910 | 0 | 0 |
| TOML | 1 | 357 | 331 | 19 | 7 |
| Shell | 7 | 177 | 87 | 72 | 18 |
| Markdown | 31 | 2,918 | 0 | 2,481 | 437 |
| Plain Text | 38 | 327,797 | 0 | 326,152 | 1,645 |

Top language (Python 99.0%). Generated at 2026-10-21T04:12:36.958176347+00:00. Canonical report: https://octocounts.com/github/TheAlgorithms/Python

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/TheAlgorithms/Python/commit/6e03a48579ca212a08b36be00378f887dc41a003?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=26f8846aff8629dc9ef32c2da3d6cf87455745b5cde9c4791cd14ed8e0b90a20).

## Report FAQ

### How many lines of code does TheAlgorithms/Python have?

TheAlgorithms/Python has 482,363 total lines, including 127,292 code lines, 333,847 comment lines, and 21,224 blank lines.

### How was the TheAlgorithms/Python line count measured?

OctoCounts resolved the public GitHub repository to commit 6e03a48579ca, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for TheAlgorithms/Python?

This OctoCounts report was generated from master at commit 6e03a48579ca on 2026-10-21T04:12:36.958176347+00:00.

## Similar repository reports

- [ansible/ansible](https://octocounts.com/github/ansible/ansible) — Python, 127,869 code lines
- [factorysemantics/factorysemantics-mes](https://octocounts.com/github/factorysemantics/factorysemantics-mes) — Python, 128,935 code lines
- [XiaomiMiMo/verl](https://octocounts.com/github/XiaomiMiMo/verl) — Python, 130,616 code lines
- [linxuhao/AItelier](https://octocounts.com/github/linxuhao/AItelier) — Python, 123,816 code lines
- [elder-plinius/OBLITERATUS](https://octocounts.com/github/elder-plinius/OBLITERATUS) — Python, 122,367 code lines
- [google/artemis](https://octocounts.com/github/google/artemis) — Python, 122,020 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
