Computers and Technology, 14.11.2020 06:10 lexiejax21
Complete the code to finish this program to analyze the inventory for a store that sells purses and backpacks. (python)
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
aReader = csv. reader(fileIn)
for bag in aReader:
if bag[1] == 'purse':
countPurse = countPurse + int(bag[ ? ])
fileIn. close()
print("Number of purses:",countPurse)
6
7
5
Answers: 1
Computers and Technology, 22.06.2019 04:30, kkeith121p6ujlt
Eye injuries usually occur as a result of all of the following things, except: a) proper machine operation b) battery explosion c) falling or flying debris d) electric welding arc
Answers: 2
Computers and Technology, 22.06.2019 08:30, ruddymorales1123
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet. what cloud model is linda using
Answers: 1
Computers and Technology, 23.06.2019 15:00, billlyyyyyyyyyy
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
Complete the code to finish this program to analyze the inventory for a store that sells purses and...
Mathematics, 28.03.2020 00:55
Physics, 28.03.2020 00:55