Coder Social home page Coder Social logo

candytale55 / thread_shed_python_3 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6 KB

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."

Python 100.00%
python-string-methods string-manipulation thread-shed codecademy python3 string-methods

thread_shed_python_3's Introduction

Thread_Shed_Python_3

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."

General info

The purpose of the project is just personal learning.

Description

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().

Technologies

  • Python 3

Setup

NA - It's only coding examples, there's no setup.

Status

Project is: finished

References

Based on Codecademy's Learn Python 3 course, Thread Shed exercise

thread_shed_python_3's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.