Practice with python string methods for cleaning a string. "You’ve been hired as a cashier in Thread Shed shop. which has an out-dated register system and stores all of the transaction information in one string called daily_sales."
The purpose of the project is just personal learning.
Thread Shed keeps its register of all of the transaction information in one long awful string called daily_sales. For each transaction, the name of the customer, amount spent, types of thread purchased, and the date of sale is recorded in this same string.
The task is to iterate through the string and clean up each transaction and store all the information in easier to access lists and then get the following:
- Collect the individual data points for each transaction in thres separate lists: customers, sales, and thread_sold
- To know how much money the shop did in one day (total_sales).
- To know how many of each color was sold (using function color_count(color)).
- Count the number of sales for each color using a for loop and .format().
- Python 3
NA - It's only coding examples, there's no setup.
Project is: finished
Based on Codecademy's Learn Python 3 course, Thread Shed exercise