Title: fix-factorial-validation: Fix input validation and doctests by MathewAddala · Pull Request #13818 · TheAlgorithms/Python · GitHub
Open Graph Title: fix-factorial-validation: Fix input validation and doctests by MathewAddala · Pull Request #13818 · TheAlgorithms/Python
X Title: fix-factorial-validation: Fix input validation and doctests by MathewAddala · Pull Request #13818 · TheAlgorithms/Python
Description: All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.
Open Graph Description: Fix factorial() input validation to use isinstance(number, int) instead of value comparison Changes: Replace 'number != int(number)' with 'not isinstance(number, int)' in factorial...
X Description: Fix factorial() input validation to use isinstance(number, int) instead of value comparison Changes: Replace 'number != int(number)' with 'not isinstance(number, int)&#...
Opengraph URL: https://github.com/TheAlgorithms/Python/pull/13818
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4529bce7-64e0-01a9-0c05-dad79c9e5359 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA3E:43F78:28D66DB:34AEDCA:6A5CAF0D |
| html-safe-nonce | 8a899e7fe9d390aa69d36c959de8106a83e8f80ac368e5ba82c75588db0a6e06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTNFOjQzRjc4OjI4RDY2REI6MzRBRURDQTo2QTVDQUYwRCIsInZpc2l0b3JfaWQiOiI3OTIyMzQ3Mzc0MzMyOTE1NDY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 74d508f264533e12b373265598eda493e7b2328d7c69c6903a5cad42b573ca11 |
| hovercard-subject-tag | pull_request:2965301076 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/13818/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f5bebb1cd8d9c915d90e22b2ed19f5bbf36d949215b63f39509d156865e3976b/TheAlgorithms/Python/pull/13818 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5bebb1cd8d9c915d90e22b2ed19f5bbf36d949215b63f39509d156865e3976b/TheAlgorithms/Python/pull/13818 |
| og:image:alt | Fix factorial() input validation to use isinstance(number, int) instead of value comparison Changes: Replace 'number != int(number)' with 'not isinstance(number, int)' in factorial... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MathewAddala |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width