Title: Infinite Loop in food_ordering_system.py · Issue #23 · codebasics/data-structures-algorithms-python · GitHub
Open Graph Title: Infinite Loop in food_ordering_system.py · Issue #23 · codebasics/data-structures-algorithms-python
X Title: Infinite Loop in food_ordering_system.py · Issue #23 · codebasics/data-structures-algorithms-python
Description: There is an error in the dequeue method in the Queue class as when I'm running this program food_ordering_system.py . I'm getting an infinite loop Placing order for: samosa Placing order for:Now serving: pizza pasta Placing order for: bi...
Open Graph Description: There is an error in the dequeue method in the Queue class as when I'm running this program food_ordering_system.py . I'm getting an infinite loop Placing order for: samosa Placing order for:Now se...
X Description: There is an error in the dequeue method in the Queue class as when I'm running this program food_ordering_system.py . I'm getting an infinite loop Placing order for: samosa Placing order fo...
Opengraph URL: https://github.com/codebasics/data-structures-algorithms-python/issues/23
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Infinite Loop in food_ordering_system.py","articleBody":"There is an error in the dequeue method in the Queue class as when I'm running this program\r\n``food_ordering_system.py ``. I'm getting an infinite loop \r\n\r\n```Placing order for: pizza\r\nPlacing order for: samosa\r\nPlacing order for:Now serving: pizza\r\n pasta\r\nPlacing order for: biryani\r\nPlacing order for: burger\r\nNow serving: samosa\r\nNow serving: pasta\r\nNow serving: biryani\r\nNow serving: burger\r\nQueue is empty\r\nNow serving: None\r\nQueue is empty\r\nNow serving: None\r\nQueue is empty\r\nNow serving: None\r\nQueue is empty\r\nNow serving: None\r\nQueue is empty\r\nNow serving: None\r\nQueue is empty\r\nNow serving: None \r\n```\r\nand it goes on \r\nI think this error can be solved by using the ``try and except`` block\r\nI'm new to open source and trying to make my contribution.\r\nI will work on this issue.\r\ncan you guide me?","author":{"url":"https://github.com/slayer321","@type":"Person","name":"slayer321"},"datePublished":"2021-04-09T10:08:49Z","url":"https://github.com/codebasics/data-structures-algorithms-python/issues/23"}
| 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:9931dc7f-cbd1-7226-592b-f0a996043830 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90DC:361639:2F993A0:3F8B850:6B01E675 |
| html-safe-nonce | 8f4463234bea93ed78251f381da46ea9f49185dc4beb6703c508f1a40c3d4632 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MERDOjM2MTYzOToyRjk5M0EwOjNGOEI4NTA6NkIwMUU2NzUiLCJ2aXNpdG9yX2lkIjoiODk3NDQ0MDgxMDgyNTI0NjMyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 420a1e6e68ca49d5148fa04eca202a1c9c411268b5273c5e11827bb200511edc |
| hovercard-subject-tag | issue:854380372 |
| 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/codebasics/data-structures-algorithms-python/23/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84a420fc5a5a947df9ad646b2f6b065913fcfe76c3e51038cd081f0bad23ab0c/codebasics/data-structures-algorithms-python/issues/23 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84a420fc5a5a947df9ad646b2f6b065913fcfe76c3e51038cd081f0bad23ab0c/codebasics/data-structures-algorithms-python/issues/23 |
| og:image:alt | There is an error in the dequeue method in the Queue class as when I'm running this program food_ordering_system.py . I'm getting an infinite loop Placing order for: samosa Placing order for:Now se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | slayer321 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/codebasics/data-structures-algorithms-python git https://github.com/codebasics/data-structures-algorithms-python.git |
| octolytics-dimension-user_id | 16063416 |
| octolytics-dimension-user_login | codebasics |
| octolytics-dimension-repository_id | 299539326 |
| octolytics-dimension-repository_nwo | codebasics/data-structures-algorithms-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 299539326 |
| octolytics-dimension-repository_network_root_nwo | codebasics/data-structures-algorithms-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