Skip to content

Solved lab | Flow control - #718

Open
alonso-ih wants to merge 1 commit into
data-bootcamp-v4:mainfrom
alonso-ih:lab-solution
Open

Solved lab | Flow control#718
alonso-ih wants to merge 1 commit into
data-bootcamp-v4:mainfrom
alonso-ih:lab-solution

Conversation

@alonso-ih

Copy link
Copy Markdown

Summary

  • Completed the Flow Control lab by building on the data structures exercise
  • Refactored repeated inventory prompts into a for loop over products
  • Replaced fixed three-product input with a while loop that collects orders until the user stops
  • Updated inventory only for products in customer_orders instead of subtracting from every item

Test plan

  • Verified order statistics and inventory math with sample data
  • Run lab-python-flow-control.ipynb interactively and confirm prompts behave as expected

Made with Cursor

Complete the flow control exercise by refactoring the data structures lab with loops for inventory setup, dynamic order collection, and targeted inventory updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant