Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 630 Bytes

README.md

File metadata and controls

14 lines (13 loc) · 630 Bytes

example-python-1

The class was asked to write a functioning, novel program showcasing

  1. User Input
  2. String manipulation
  3. Use of a dictionary
  4. List comprehension
  5. Clean function definitions using at least 3 functions to separate code

This repo provides an example of a trivial shopping cart that

  1. Gather user input to fetch the name, item, and quantity
  2. Parses the user's name input to parse out the first name
  3. Uses a dictionary for price lookups
  4. Uses list comprehension to create the menu items from the food list
  5. Separates out the menu processing and output into functions