1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Levart [38]
3 years ago
7

Complete the code to finish this program to analyze the inventory for a store that sells purses and backpacks.

Computers and Technology
1 answer:
sp2606 [1]3 years ago
3 0

Answer:

import csv

fileIn = open("data/bags.txt","r")

countPurse = 0

textFile= csv.reader(fileIn)

for bag in textFile:    

   if bag[ 1 ] == 'purse':

       countPurse = countPurse + int(bag[6])

fileIn.close()

print("Number of purses:",countPurse)

Explanation:

I hope this helps!

You might be interested in
Cybersquatters:_________.
ZanzabumX [31]

It should be noted that cybersquatters b. register domain names for famous trademarks or company names to which they have no connection remain connected to popular Web sites.

<h3>What is Cybersquatting?</h3>

Cybersquatting  can be explained as  registering as well as selling a domain name with the so that one can benefit from goodwill of someone else's trademark.

It serves as a practice of buying up domain names which is operating on names of existing businesses.

Learn more about Cybersquatting at;

brainly.com/question/21400963

8 0
2 years ago
What type of storage system is a hard drive on a computer?<br> Need HELP fast, please.
weqwewe [10]
A hard drive is disk storage device that uses magnetic storage.
7 0
3 years ago
Read 2 more answers
Hypertext enables you to navigate through pieces of information by clicking the __________, that connect them.
Nana76 [90]

What we usually click to open the hypertext is called; Hyperlinks.

<h3>What is hypertext?</h3>

Hypertext is defined as a form of writing with three characteristics namely;

  • Discernable free standing content nodes.
  • Links between nodes.
  • The expectation of active choice by readers.

Now, a hyperlink is one that points to a whole document or to a specific element within a document. Hypertext is simply text with hyperlinks which we click to view the hypertext.

Read more about Hypertext at; brainly.com/question/853165

#SPJ1

5 0
3 years ago
Hiiiiiiiiihwdawdfgthnythgrfergthyjuhgfd
Lilit [14]

Answer:

Your answer would be gas.

Explanation:

Steam is just water just evaporated.

3 0
3 years ago
Read 2 more answers
When solving a problem in a group situation, which of the following traits should be demonstrated?
kakasveta [241]

Answer:

compromise should be demonstrated

8 0
3 years ago
Other questions:
  • Pls go to my account and answer my question
    11·2 answers
  • The original U.S. income tax of 1913 was quite simple. The tax was
    10·1 answer
  • In some cases, certain Hyper-V guest operating system features do not function properly using the operating system's own device
    9·1 answer
  • What 3 types of technologies are used inside hard drives?
    15·1 answer
  • What does limited access to a document mean? A. It makes a document inaccessible without a password. B. It enables a person to m
    7·1 answer
  • Pick the simplest line of code to test if the word "BASIC" is stored in the variable text1.
    12·1 answer
  • Not sure where I should ask this sorry
    15·1 answer
  • Write two statements that each use malloc to allocate an int location for each pointer. Sample output for given program:
    7·1 answer
  • Visit on social networking site and look for the site's privacy policy.The link is typically found at the bottom of the page and
    9·1 answer
  • HOW TO CHANGE GRADE IN SKYWARD!!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!