We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py
Issue:
def serve_orders(): time.sleep(1) while True: order = food_order_queue.dequeue() print("Now serving: ",order) time.sleep(2)
Proposed below:
def serve_orders(): time.sleep(1) while not food_order_queue.is_empty(): order = food_order_queue.dequeue() print("Now serving: ",order) time.sleep(2)
The text was updated successfully, but these errors were encountered:
Did you able to solve it by this method? Please attach your solution if possible. Thank you!
Sorry, something went wrong.
No branches or pull requests
https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/food_ordering_system.py
Issue:
Proposed below:
The text was updated successfully, but these errors were encountered: