Title: Please teach a question, https://www.hackerrank.com/challenges/any-or-all · Issue #86 · charlesartbr/hackerrank-python · GitHub
Open Graph Title: Please teach a question, https://www.hackerrank.com/challenges/any-or-all · Issue #86 · charlesartbr/hackerrank-python
X Title: Please teach a question, https://www.hackerrank.com/challenges/any-or-all · Issue #86 · charlesartbr/hackerrank-python
Description: Please teach a question, any or all this question My code will waive a case if I remove list() n = int(input()) def palindromic(n): n = str(n) if n == n[::-1]: return True return False a = list(map(int, input().split())) is_palindromic =...
Open Graph Description: Please teach a question, any or all this question My code will waive a case if I remove list() n = int(input()) def palindromic(n): n = str(n) if n == n[::-1]: return True return False a = list(map...
X Description: Please teach a question, any or all this question My code will waive a case if I remove list() n = int(input()) def palindromic(n): n = str(n) if n == n[::-1]: return True return False a = list(map...
Opengraph URL: https://github.com/charlesartbr/hackerrank-python/issues/86
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Please teach a question, https://www.hackerrank.com/challenges/any-or-all","articleBody":"Please teach a question, any or all this question\r\nMy code will waive a case if I remove list()\r\n```python\r\nn = int(input())\r\n\r\ndef palindromic(n):\r\n n = str(n)\r\n if n == n[::-1]:\r\n return True\r\n return False\r\n\r\na = list(map(int, input().split()))\r\n\r\nis_palindromic = [palindromic(x) for x in a]\r\nis_positive = [x >= 0 for x in a]\r\n\r\nprint(all(is_positive) and any(is_palindromic))\r\n```\r\nAlso the last line of code is written after yours but I don't understand why it is written this way, I can easily do without these two functions, but if I have to use them, I don't understand how to handle it","author":{"url":"https://github.com/n-WN","@type":"Person","name":"n-WN"},"datePublished":"2023-01-16T12:27:08Z","url":"https://github.com/charlesartbr/hackerrank-python/issues/86"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a6a21bf-a64d-f7ac-ae34-e06008d147cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94D6:96DDF:16E0E3D:1CFBE74:6B01339E |
| html-safe-nonce | 7b13e42d3854b0bce6650114d41528827f115c3da5294cd11e65e26171db9b94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEQ2Ojk2RERGOjE2RTBFM0Q6MUNGQkU3NDo2QjAxMzM5RSIsInZpc2l0b3JfaWQiOiI0NDgyOTc3NDQ2NzczMjA3OTY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1925f5a389a9d057865a01a9e1205a3e69a15e1cae13469874d323eca4f2832d |
| hovercard-subject-tag | issue:1534853013 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/charlesartbr/hackerrank-python/86/issue_layout |
| twitter:image | https://opengraph.githubassets.com/549c38dd163a16180174629036dd198f402af2549493da8e451b952f550fcc2c/charlesartbr/hackerrank-python/issues/86 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/549c38dd163a16180174629036dd198f402af2549493da8e451b952f550fcc2c/charlesartbr/hackerrank-python/issues/86 |
| og:image:alt | Please teach a question, any or all this question My code will waive a case if I remove list() n = int(input()) def palindromic(n): n = str(n) if n == n[::-1]: return True return False a = list(map... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | n-WN |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/charlesartbr/hackerrank-python git https://github.com/charlesartbr/hackerrank-python.git |
| octolytics-dimension-user_id | 12157011 |
| octolytics-dimension-user_login | charlesartbr |
| octolytics-dimension-repository_id | 188117284 |
| octolytics-dimension-repository_nwo | charlesartbr/hackerrank-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 188117284 |
| octolytics-dimension-repository_network_root_nwo | charlesartbr/hackerrank-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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width