subject

Complete the code to finish this program to analyze the inventory for a store that sells purses and backpacks. Each record is composed of the catalog number, the type of item, its color, the length, width, height, and the quantity in stock. Sample rows of the file are below. 234,purse, blue,12,4,14,10 138,purse, red,12,4,14,4 934,backpack, purple,25,10,15,3 925,backpack, green,25,10,15,7 import csv fileIn = open("data/bags. Txt","r") countPurse = 0 textFile= csv. (fileIn) for bag in textFile: if bag[1] == 'purse': countPurse = countPurse + int(bag[6]) fileIn. Close() print("Number of purses:",countPurse)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Does read theory have answers keys ?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
You know the right answer?
Complete the code to finish this program to analyze the inventory for a store that sells purses and...
Questions
question
English, 16.12.2020 01:00
question
Mathematics, 16.12.2020 01:00
Questions on the website: 13722363