{"id":24650767,"url":"https://github.com/tangoman75/python-lab","last_synced_at":"2026-05-06T00:39:11.188Z","repository":{"id":212710255,"uuid":"640696433","full_name":"TangoMan75/python-lab","owner":"TangoMan75","description":"TangoMan Python Lab is a Python coding project for practicing common interview questions and coding challenges.","archived":false,"fork":false,"pushed_at":"2025-10-08T16:16:43.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T17:29:27.759Z","etag":null,"topics":["interview-questions","practice","python"],"latest_commit_sha":null,"homepage":"https://tangoman.io","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TangoMan75.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-14T23:22:23.000Z","updated_at":"2025-10-08T16:16:48.000Z","dependencies_parsed_at":"2024-01-11T21:45:07.304Z","dependency_job_id":"f955f649-faa9-479f-b62e-f9816867036e","html_url":"https://github.com/TangoMan75/python-lab","commit_stats":null,"previous_names":["tangoman75/python-lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TangoMan75/python-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2Fpython-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2Fpython-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2Fpython-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2Fpython-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TangoMan75","download_url":"https://codeload.github.com/TangoMan75/python-lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2Fpython-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003899,"owners_count":26083640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interview-questions","practice","python"],"created_at":"2025-01-25T18:16:38.048Z","updated_at":"2025-10-10T12:18:42.308Z","avatar_url":"https://github.com/TangoMan75.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GH language](https://img.shields.io/github/languages/top/TangoMan75/python-lab)\n[![GH release](https://img.shields.io/github/v/release/TangoMan75/python-lab)](https://github.com/TangoMan75/python-lab/releases)\n[![GH license](https://img.shields.io/github/license/TangoMan75/python-lab)]((https://github.com/TangoMan75/python-lab/blob/main/LICENSE))\n[![GH stars](https://img.shields.io/github/stars/TangoMan75/python-lab)](https://github.com/TangoMan75/python-lab/stargazers)\n[![Python CI](https://github.com/TangoMan75/python-lab/workflows/Python%20CI/badge.svg)](https://github.com/TangoMan75/python-lab/actions/workflows/python.yml)\n![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2FTangoMan75%2Fpython-lab\u0026labelColor=%23697689\u0026countColor=%2337d67a\u0026style=flat)\n\n🔬 TangoMan Python Lab\n======================\n\n#python #vanilla #back-end #training #interview #technical-interview\n\n**🔬 TangoMan Python Lab** is a Python coding project for practicing common interview questions and coding challenges.\n\nThere are various Python scripts in the root directory that implement different algorithms and solutions to coding problems:\n\n1. 🔄 **Ackermann**\n\nImplements the Ackermann function, which is a classic example of a recursive function that can be used to test compilers and illustrate the concept of recursion.\n\n2. 🔍 **BinarySearch**\n\nImplements binary search to find an element in a sorted array. Binary search is an efficient algorithm for searching sorted data sets and relies on the divide-and-conquer technique.\n\n3. ➕ **Factorial**\n\nCalculates factorials recursively. Factorials are used in combinatorics and provide good examples of recursive functions.\n\n4. 🔢 **Fibonacci**\n\nGenerates Fibonacci numbers recursively. The Fibonacci sequence illustrates recursion and has applications in mathematics and nature.\n\n5. 💬 **FizzBuzz**\n\nPrints numbers 1 to 100, but prints \"Fizz\" for multiples of 3, \"Buzz\" for multiples of 5, and \"FizzBuzz\" for multiples of both. This is a common interview screening question.\n\n6. 👋 **HelloWorld**\n\nPrints \"Hello World!\" - the traditional first program for beginner programmers.\n\n7. ❄️ **MinTemperature**\n\nFinds minimum temperature value from temperature data. Demonstrates algorithms for finding minimum/maximum values.\n\n8. 🔄 **Palindrome**\n\nChecks if a string is a palindrome. Palindromes illustrate recursion and string manipulation.\n\n9. ✔️ **Perfect**\n\nChecks if a number is a perfect number, where the number equals the sum of its divisors. Interesting math and recursion example.\n\n10. 🃏 **Poker**\n\nEvaluates poker hands. Involves evaluating combinations and ranks of cards.\n\n11. 🥇 **PrimeNumbers**\n\nChecks if a number is prime, where a natural number greater than 1 has no positive divisors other than 1 and itself.\n\n12. 🔄 **Rot13**\n\nEncodes/decodes a string using the ROT13 cipher, a simple letter substitution cipher. Basic encryption example.\n\n13. 🔑 **SimpleJWT**\n\nImplements JSON Web Token (JWT) encoding and decoding.\n\n14. 💹 **Stocks**\n\nReturn an array holding the names of the top three stocks with the best average performance given two separate arrays containing stocks names and prices.\n\n15. 🔢 **Syracuse**\n\nImplements the Syracuse algorithm/sequence. Interesting recursion and number theory example.\n\n16. 💸 **Taxes**\n\nCalculates taxes on French incomes based on specified brackets.\n\n17. 🏗️ **TowerOfHanoi**\n\nImplements the Tower of Hanoi algorithm. A classic algorithm that illustrates recursion and dynamic programming.\n\n18. 🔄 **VonNeumann**\n\nGenerates Von Neumann ordinal numbers. Illustrates generating recursive sequences.\n\n✅ Unit Tests\n-------------\n\nThe tests/ directory in each folder contains `unittest` test cases for testing the implementations of each algorithm.\n\n### 📑 unittest Documentation\n\nunittest documentation is available here: [https://docs.python.org/3/library/unittest.html](https://docs.python.org/3/library/unittest.html)\n\n🚀 Github Actions\n-----------------\n\nThis project uses Github Actions for continuous integration and testing. The `.github/workflows` directory contains YAML workflow definitions for:\n\n- Linting: Runs `pylint` to check code style and quality on every push and pull request.\n- Testing: Runs the Python unit tests on Ubuntu, against python versions _3.8_ _3.9_ and _3.10_.\n\nThe workflows help maintain code quality and ensure the tests pass on multiple python versions.\n\n🌟 Inspiration\n--------------\n\nThe following YouTube videos inspired **TangoMan Python Lab** project:\n\n- [Coding Challenge : JS Impot.calculate()](https://www.youtube.com/watch?v=cX-5J_cy8TM)\n- [FizzBuzz: One Simple Interview Question](https://www.youtube.com/watch?v=QPZ0pIK_wsc)\n- [Solve This Coding Question To Win $200](https://www.youtube.com/watch?v=WDuZ_S_9vLg)\n- [The Most Difficult Program to Compute? - Computerphile](https://www.youtube.com/watch?v=i7sm9dzFtEI)\n\n💻 Dependencies\n---------------\n\n**TangoMan Python Lab** requires the following dependencies:\n\n- Python3\n\n---\n\n### 🐍 Python3\n\n#### 🐧 Install Python3 (Linux)\n\nOn linux machine enter following command\n\n```bash\n$ sudo apt-get install --assume-yes python3\n```\n\n#### 🏁 Install Python3 (Windows)\n\nDownload and install latest version from here [python.org](https://python.org)\n\n#### 🍎 Install Python3 (OSX)\n\nYou can install python through the Homebrew package manager. Homebrew will install python-pip as well.\n\n```bash\n$ brew install python\n```\n\n---\n\n### 🐍 Pylint\n\ninstall pylint globally with pip\n\n```bash\nsudo pip install --upgrade pylint\n```\n\n\u003e Pylint documentation https://github.com/pylint-dev/pylint\n\n---\n\n### 🐍 Autopep8\n\ninstall autopep8 globally with pip\n\n```bash\nsudo pip install --upgrade autopep8\n```\n\n\u003e Autopep8 documentation https://github.com/hhatto/autopep8\n\n---\n\n🚀 Installation\n---------------\n\n### ⚡ Step 1: Simply enter following command in your terminal\n\n```bash\n$ sh entrypoint.sh install\n```\n\n🔥 Usage\n--------\n\nRun `sh entrypoint.sh` to print help\n\nRun tests:\n\n```bash\nsh entrypoint.sh unit\n```\n\nLint code:\n\n```bash\nsh entrypoint.sh lint\n```\n\nFix lint errors:\n\n```bash\nsh entrypoint.sh lint --fix\n```\n\nUninstall:\n\n```bash\nsh entrypoint.sh uninstall\n```\n\n🤝 Contributing\n---------------\n\nThank you for your interest in contributing to **TangoMan Python Lab**.\n\nPlease review the [code of conduct](./CODE_OF_CONDUCT.md) and [contribution guidelines](./CONTRIBUTING.md) before starting to work on any features.\n\nIf you want to open an issue, please check first if it was not [reported already](https://github.com/TangoMan75/python-lab/issues) before creating a new one.\n\n📜 License\n----------\n\nCopyrights (c) 2024 \u0026quot;Matthias Morin\u0026quot; \u0026lt;mat@tangoman.io\u0026gt;\n\n[![License](https://img.shields.io/badge/Licence-MIT-green.svg)](LICENSE)\nDistributed under the MIT license.\n\nIf you like **TangoMan Python Lab** please star, follow or tweet about it:\n\n[![GitHub stars](https://img.shields.io/github/stars/TangoMan75/python-lab?style=social)](https://github.com/TangoMan75/python-lab/stargazers)\n[![GitHub followers](https://img.shields.io/github/followers/TangoMan75?style=social)](https://github.com/TangoMan75)\n[![Twitter](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fgithub.com%2FTangoMan75%2Fpython-lab)](https://twitter.com/intent/tweet?text=Wow:\u0026url=https%3A%2F%2Fgithub.com%2FTangoMan75%2Fpython-lab)\n\n... And check my other cool projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangoman75%2Fpython-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftangoman75%2Fpython-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangoman75%2Fpython-lab/lists"}