PythonPlacement Classroomnotes 03/Jan/2022

Lets store Products In CSV (Comma sepearated) Files

  • As a first step, we wanted to save products to a csv file.
  • For this we have used the standard module csv. Refer Here for the official docs
  • Refer Here for the changes done in the class
  • This code is verified, where we were able to add one product.
  • Now lets add one more product, we found the data to overriting, so changed the mode
  • Refer Here for the changes done to make the save work.
  • As of now we have two outstanding issues to be fixed
  • Extra line is getting created
  • Header in csv file would be better.
  • Refer Here for the next set of changes done

  • To maintain stock of the items we need

  • id of the product
  • remaining stock
  • Refer Here

  • Create an account in vp online Refer Here
    Preview

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner