| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/*id(.:format) |
| route-controller | pull_requests |
| route-action | show |
| fetch-nonce | v2:0487c0b8-8b4d-0849-673a-22a0bdde529f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C756:294E3E:465823:628DC5:6AFDC829 |
| html-safe-nonce | ed8df5d30c9fe6a0ec0338714772359a0b0e535560c941174de0e774588cd3f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzU2OjI5NEUzRTo0NjU4MjM6NjI4REM1OjZBRkRDODI5IiwidmlzaXRvcl9pZCI6Ijc4NTQ4Mzg1NDE1MTQwMzMxOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eb6ccf5fa58913c4c3864e34aabea2609b291f614b2697944ae73e117441b3b9 |
| hovercard-subject-tag | pull_request:5257974016 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| twitter:image | https://opengraph.githubassets.com/2605a70360b7525f35ffc2d48e82c924c539a34bdf4ae8bfb4e39045e146ba7b/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2605a70360b7525f35ffc2d48e82c924c539a34bdf4ae8bfb4e39045e146ba7b/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| og:image:alt | Description
Refactors electronics/resistor_color_code.py without changing behaviour: the repeated "look the colour up in this band's table or raise ValueError" code in four functions ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | code-paul-creator |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9ab00cc3b4fa90bbd3da70765dd38efc23cfa9d9b0930e41feea2bf67f60ecaf |
| turbo-cache-control | no-cache |
| go-import | github.com/S-AI-Projects/TheAlgorithms-Python git https://github.com/S-AI-Projects/TheAlgorithms-Python.git |
| octolytics-dimension-user_id | 351892385 |
| octolytics-dimension-user_login | S-AI-Projects |
| octolytics-dimension-repository_id | 1444141022 |
| octolytics-dimension-repository_nwo | S-AI-Projects/TheAlgorithms-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 63476337 |
| octolytics-dimension-repository_parent_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1b795ba060b92691fc16c5a12cf2bf95e83432b4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-Python%2Fpull%2F68 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-Python%2Fpull%2F68 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=S-AI-Projects%2FTheAlgorithms-Python |
| Reload | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| Reload | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| Reload | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| S-AI-Projects | https://github.com/S-AI-Projects |
| TheAlgorithms-Python | https://github.com/S-AI-Projects/TheAlgorithms-Python |
| Code | https://github.com/S-AI-Projects/TheAlgorithms-Python |
| Issues60 (60) | https://github.com/S-AI-Projects/TheAlgorithms-Python/issues |
| Pull requests39 (39) | https://github.com/S-AI-Projects/TheAlgorithms-Python/pulls |
| Actions | https://github.com/S-AI-Projects/TheAlgorithms-Python/actions |
| Projects | https://github.com/S-AI-Projects/TheAlgorithms-Python/projects |
| Security and quality | https://github.com/S-AI-Projects/TheAlgorithms-Python/security |
| Insights | https://github.com/S-AI-Projects/TheAlgorithms-Python/insights |
| https://github.com/S-AI-Projects/TheAlgorithms-Python |
| code-paul-creator | https://github.com/code-paul-creator |
| S-AI-Projects:master | https://github.com/S-AI-Projects/TheAlgorithms-Python/tree/master |
| code-paul-creator:R23-T058 | https://github.com/code-paul-creator/TheAlgorithms-Python/tree/R23-T058 |
| Conversation | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
| Commits1 (1) | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68/commits |
| Checks | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68/checks |
| Files changed | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68/files |
| R23-T058: Refactor resistor_color_code.py to share colour lookup and validation helpers | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68#top |
| code-paul-creator | https://github.com/code-paul-creator |
| S-AI-Projects:master | https://github.com/S-AI-Projects/TheAlgorithms-Python/tree/master |
| code-paul-creator:R23-T058 | https://github.com/code-paul-creator/TheAlgorithms-Python/tree/R23-T058 |
|
| https://github.com/code-paul-creator |
| code-paul-creator | https://github.com/code-paul-creator |
| Nov 11, 2026 | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68#issue-6326691561 |
| #58 | https://github.com/S-AI-Projects/TheAlgorithms-Python/issues/58 |
| Please reload this page | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
|
| https://github.com/code-paul-creator |
| R23-T058: share colour lookup and validation helpers in resistor_colo… | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68/commits/19663b036bae575d3a6e71d703a3f737dd235203 |
| 19663b0 | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68/commits/19663b036bae575d3a6e71d703a3f737dd235203 |
| https://github.co/hiddenchars |
| https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-Python%2Fpull%2F68 |
| Please reload this page | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
|
Paulami Bhosle — R23-T058: Refactor electronics/resistor_color_code.py (374 lines)
| https://github.com/S-AI-Projects/TheAlgorithms-Python/issues/58 |
| Please reload this page | https://github.com/S-AI-Projects/TheAlgorithms-Python/pull/68 |
|
| https://github.com/code-paul-creator |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |