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

Complete The Code To Finish This Program To Analyze The Inventory For A Store That Sells Purses And Backpacks.Each

Answers

Answer 1

The complete code to finish this program to analyze the inventory for a store that sells purses and backpacks is written below.

What is coding?

Coding, often known as computer programming, is the method through which we connect with computers. Code informs a machine what to do, and writing code is similar to writing a set of instructions.

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)

Therefore, the complete code is written above.

To learn more about coding, refer to the link:

https://brainly.com/question/20712703

#SPJ1


Related Questions

A vending machine that serves coffee pours a varying

Answers

is that the whole question? or

What does perseverance mean?
A. an interest in discovering the unknown
B. helping someone recover from an injury
C. a willingness to keep trying
D. an ability to communicate with others

Answers

ansewer is C a willingness to keep trying
The answer is Definitely C.

The first photo in the collage is what I should make a copy of, anyone has any knowledge on how to add the numbers apart of the spreadsheet and the letters? ​

Answers

Pick the cell that you want the combined data to be in.
Type the formula, with double quotes within the file. For instance: ="Due in "&A3 &" days"
NOTE: End or begin the text string with a space to separate the text strings from the numbers.
To complete the formula, press Enter

Site specific situation wherein you have to write “Shortage Notations?

Answers

Answer:

Shortage Notations and the situation where you have to write down the Shortage Notations is explained below in complete detail with the situation.

Explanation:

Shortage Notations: If a portion of the shipment is missing, record the number of items shipped on the delivery slip and circle it. Then record down the number of articles missing and remark them as "short." The acquiring person is accountable for demanding the carrier to investigate the damaged goods and packaging.

It should be noted that a shortage notation occurs when the products delivered on a ship are incomplete when the ship gets to its destination.

It should be noted that shortage notation simply means when a portion of a shipment is missing, then an individual should record rte number of the items that are shipped on the delivery slip and then circle it.

Then, in such a situation, the owner of the good can then file a shortage claim later. This happens when the packaging isn't intact.

Learn more about shipping on:

https://brainly.com/question/758860

PLEASE HELLPPPPP EVERYONE IS IGNORING THISSSSSSSSSS
In your own words, describe in detail the different types of image licensing. How does image metadata play a role in these licenses and why is that important.

Answers

Answer:

Permissive licenses are also known as Apache style or BSD style. They contain minimal requirements about how the software can be modified or redistributed

Explanation:

Please help I’m not trying to fail

Answers

Answer:

a

Explanation:

i think a pressure clamps

A computer scientist creates an app that tells you a funny joke each time you touch the Joke button.
a. What does the view layer for this app contain?


b. What does the controller layer do for this app?

Answers

Answer:

B And A

Explanation:

B: The controller renders a responce it can be seen as a manager and other parts are its workers and makes sure that other parts are "working" well

Answer:

He's actually right- it's B and A.

Explanation:

Will give brainliest!
Who created binary, and does anyone have any idea how?

Answers

Answer:

Gottfried Leibniz created it and Leibniz was trying to find a system that converts logic's verbal statements into a pure mathematical one.

Help Me Please. I'm Begging you

Answers

Answer:

d and b can't see the last ones answer so im guessing this is what you needed.

Explanation:

1. lesa __________
2. didalna _______________
3 .rpeyr etlyr _____________
4. etrpoy _____________
5. rkyo ewn _____________
6. amya loagneu _____________
7. zfeorn___________________
8. msal etopry ________________
9. reyve nda gsni filt ________________________
10. tehreat lopoal ______________________
11. getas htgfir _______________
12. telsa __________________
13. diovc _____________
14. engilaenri _____________
15. atsfdofo ____________
16. rgwo pu i nhew ____________
17. tbulatyir lipcoe _______________
18. smjniae ncpiesrs __________________
19. migna ______________
20. dnaniai rgya

Answers

Penissss...?
Yes or no?

What is 01010101 converted to denary

Answers

Answer:

85

Explanation:

0 + 64 + 0 + 16 + 0 + 4 + 0 + 1 = 85

DOSE ENY ONE KNOW WHAT TOOLS THEASE ARE NEXT TO THIS GUY BECAUSE I AM AT A LOSE ON THIS ONE??????????

Answers

Those look like very old tools

All are secret and destructive weapons I guess

A piece of hardware used to enter data into a computer: Output Device Backing Storage Device Programming language Input Device

Answers

Answer:

Input Device.

Explanation:

A piece of hardware used to enter data into a computer is known as an input device.

Basically, this input device is also known as peripherals and it comprises of all of the devices that are interconnected with the CPU. Some examples of input devices used with a computer includes keyboards, scanner, mouse, etc. They avail the end users the ability to send an information to the computer system for processing into a desired output.

Every finger has a key it should be resting on when you are not typing
1. False
2. True

Answers

Answer:

true.

Explanation:

your point fingers should always be

your left should rest on F

your right should rest on J

the anwser is true!

how was banking in the 1950s​

Answers

Answer:

Diners Club launches the national charge card industry. Previous credit cards had been limited in use to one retail establishment or chain.  1950: Wider Acceptance

Explanation:

Which of the following are advantages of automatic updates?

Answers

Answer:

I think maybe b or d

Explanation:

Answer:

It's A, B, and D

Explanation:

Find the value of the expression 5n² + 5n - 2 if n = -2.

Answers

5(-2)^2 + 5(-2) - 2
5(4) - 10 - 2
20 - 10 - 2
10 - 2
8

So far , All of the input that we have seen comes directly from the user with your partner brainstorm other ways an app might get the information that it needs

Answers

Answer:

An app can get information from the device itself like diagnostic data or location.

Explanation:

In your opinion which of the following is the most convenient way to create a bootable USB flash drive? Why?

Answers

Answer:

here

Explanation:

Plug the USB drive into your computer’s USB port.

Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context menu. This opens a small window with white text on a black background.

Type the command “diskpart” and confirm your input with the enter key (you’ll also do this after every other entered command). This starts the storage device manager.

Enter the command “list disk” to display all available storage devices.

You can recognize your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC, so a hard drive or solid state drive in your computer.

Based on the assumption that your USB has the label “disk 1”, enter the command “sel disk 1” to select it (or the corresponding “disk 2”, etc.).

Enter then command “clean” to delete all files from the USB.

Enter the command “create partition primary” to create a main partition.

Enter the command “list par” and select the newly created main partition with “sel par 1”.

Activate the partition with the command “active”.

Format the USB with the command “format fs=FAT32 label=“WINDOWSUSB” quick override” (in place of “WINDOWS USB” you can also choose another label, so long as it doesn’t contain any spaces or special characters. The drive will later be displayed under this name if you plug into a running Windows computer). Formatting may take a while. You can track its progress in the percentage bar.

As soon as the process is finished, enter the command “assign” to automatically assign a drive letter (for example “G:”) to your USB.

Enter “exit” to close DiskPart, and then “exit” again to close the command prompt

Help please not trying to fail

Answers

Answer:

B. Everywhere CFCI is not

1. Is the function void or return
a. void
b. return
2. What is the result of the following expression: int r = 3; r%2 == 0;
a. it evaluates as true
b. it evaluates as false
c. nothing happens

Answers

Answer:

(a) void

(b) Nothing happens

Explanation:

Solving (a): void and return

A function that returns no value is referred to as a void function.

On the other hand, a void can not be return or named return.

So, the function is void

Solving (b):

r = 3

Required

The result of r%2 == 0

Substitute 3 for r in r%2 == 0

3%2 == 0

3%2 is 1.

So, we have:

1 == 0

Hence, the equivalent of r%2 == 0 is 1 == 0.

However, nothing will happen because there is no instruction attached to the statement (i.e. r%2 == 0;)

why is it important to make sure link is from a trusted source? can't we just click and if it's not what we want or
through it would be just go back?​

Answers

Answer:

First... you don't want to have to click on a million different sites

Second.... some sites have viruses, and they activated when you click on a certain source.

Explanation:

Hava great day!

Answer:

They say that it has to be from a trusted source because, you will be needing the correct and trustworthy information. Like take wikipedia for example anyone can go on there and change the information to something fake and then you have fake info in what you are writing.

Explanation:

Ok for whoever answers this, Ill wager 20 points...
Consider the following procedures.

PROCEDURE math (ans1, ans2)
{
a ← INPUT()
b ← INPUT()
c ← math2(a, b)
e ← a + ans1
f ← b + ans2
g ← math2(e, f)
h ← c + g
DISPLAY(h)
}

PROCEDURE math2 (res1, res2)
{
d ← res1 + res2
RETURN(d)
}
What is displayed as a result of executing the following program, if when prompted, the user enters a = 3 and b = 4?

math(1, 2)

Answers

Answer:

The display will be 17.

Explanation:

Tracing through the program:

At first, math is called and sent 1 and 2 - so 1 is stored to ans1 and 2 is stored to ans2.

If the user inputs 3 for a and 4 for b, the program then calls function math2 and passed values of 3 and 4.

So now inside of math2, 3 is stored to res1 and 4 is stored to res3. Inside of this function, res1 and res2 are added together - so then 7 is stored to d and then returned back to the original function.

So now 7 was stored back to the variable c. Then a and ans1 are added together (3 + 1 = 4) and b and ans2 are added together (4 + 2 = 6). Each of these values are stored back to e and f.

Then those values, e and f (4 and 6) are again sent to math2, which simply adds the values together and returns it back to the function. So 10 is sent back to math and stored to the value of g.

Then c (7) and g (10) are added together and displayed.

Word processing software is used primarily by schools rather than businesses.
True or false

Answers

Answer:

False.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

Generally, the Microsoft Word software is used by various businesses for processing and formatting text-based documents.

In Microsoft Word, formatting refers to the appearance of texts in a document.

Formatting a text involves performing tasks such as, bold, underline, italics, font-size, font-types, color etc. The commands to perform the above tasks are mainly found in the format menu of the Home tab.

Formatting a document is important and necessary because it makes the word document clear and easy to read.

Hence, Word processing software such as Microsoft Word, Notepad, etc., is used primarily by businesses rather than schools because most businesses deal with the creation and transfer of documents from one department to another or to other businesses.

This ultimately implies that, business firms or organizations are more inclined to use Word processing software to create paper documents for the day-to-day business activities they conduct unlike a school who rarely does.

What are three primary reasons for asking others to review and comment on a presentation?
O to document feedback, edit images, or share credit for the presentation
O to review content for accuracy, suggest improvements, or document feedback
O to suggest improvements, maintain record keeping, or review images for accuracy
O to maintain record keeping, share credit for the presentation, or suggest improvements

Answers

Answer:

to review content for accuracy, suggest improvements, or document feedback

Explanation: answer is b

How do ACLs work on a router?

Answers

Answer:

An ACL is a list of permit or deny rules detailing what can or can't enter or leave the interface of a router. Every packet that attempts to enter or leave a router must be tested against each rule in the ACL until a match is found. If no match is found, then it will be denied.

Explanation:

PLEASE MARK ME AS BRAINLIEST

Explain the difference between undecidable problems and unreasonable time algorithms. Be specific.

Answers

One for which no algorithm can ever be written to find the solution is an unsolvable problem. An undecidable problem is one for which no algorithm can ever be written that will always provide any input value with a correct true/false option.

An insoluble issue is one for which there is no algorithm that can ever be constructed to locate the solution. Undecidable problems are those for which there is no method that will ever be developed that can consistently return a true/false answer for any input value.

What is time algorithms?

If the value of an algorithm is constrained by a value that is independent of the amount of the input, the algorithm is said to be constant time sometimes written as time. For instance, accessing any individual element in an array requires a constant amount of time because just one operation is required to find it.

We employ a technique known as "Big O notation" to describe how time-consuming a method is. We employ a language called the Big O notation to express how time-consuming an algorithm is.

Therefore, we would argue that the insertion sort's best-case time complexity is O. (n). Linear complexity is another name for O(n) complexity.

Thus, An insoluble issue is one for which there is no algorithm.

For more information about time algorithms, click here:

https://brainly.com/question/14635830

#SPJ6

7. Peter is a tennis player. Suggest one advantage and one disadvantage of him using a
T-shirt made from polyamide to play tennislin. (2)

Answers

When you're shopping for new clothes determining the proper fabric type is just as important as choosing the right size and color. With so many different kinds of fabric available it can be hard to know what's best for your needs. That's why we made this comprehensive guide to the most popular fabrics used to make clothing and accessories. Click on a button below to jump to that fabric type, then click into each fabric type to see products made from that kind of material!

why is it important to make sure link is from a trusted source?

Answers

Answer:

So to make sure itś true not false

Explanation:

Answer:

so you know that the information is trusted and correct. Take Wikipedia as a example people can edit any passages thingy's. Or it can cause you to have viruses and stuff

Explanation:

hope this help !!:):

Why should you delete files from your computer?


so that you will have less work to do

because only one hundred files can be saved in a directory

to increase the computer's efficiency

to improve your productivity

Answers

to increase the computer's efficiency

Explanation

The more files it holds, the more "jobs" it has to run, which means that you're computer would be using the same amount of energy running all of them as to less of them. When you close (or delete) some files, it allows the computer to concentrate on only running a smaller amount of files as oppose to a large amount.

hope it helps!

Answer:

To increase the computer's efficiency.

Explanation:

Having a bunch of files will most likely slow down your computer and make things harder to do. If you don't have a bunch of files, though, your computer will be faster and easier to guide through.

I hope this helps :)

Other Questions
Cardiorespiratory endurance measures the fitness and efficiency of which body system?A skeletalB circulatoryC muscularD excretory It costs $3.60 to buy one lb of candy. How much would it cost to purchase 5 lbs of candy? help please Thank you!!! What item do you need to have at home and why is it important ART Which statement is true regarding the line y=4x+13?The line has a slope of 13.The line has a slope of 4.The line passes through the point (0, 13).The line passes through the point (0, 4). 20141352510Is this relation a function?. The graph represents the relationship between x (the number of owls fed) and y (the number of rev dollars spent). What is the amount of money that will be spent to feed 10 owls? pls hurry please please please help this is really important, please add work/explanations find the area of a circle with a radius of 2cm 5x+4=60 and 3x+6=45 how do you solve this ? If two supplementary angles are 3 x space plus space 7 and 2 x minus 1, what is the value for x?Write your answer as a decimal. Mary is baking cookies, and the recipe calls for 1 1/2 cups of sugar. If she has 6 1/3 cups of sugar left after she bakes the cookies, how much sugar (s) did she have before she started baking cookies? Which equation would you use to solve for (s)? Translate each of the following English statements into logical expressions. The domain is the set of all real numbers. (a) There are two numbers whose ratio is less than 1. (b) The reciprocal of every positive number is also positive. (c) There are two numbers whose sum is equal to their product. (d) The ratio of every two positive numbers is also positive. Cate and Elena were playing a card game. The stack of cards in the middle had 26 cards in it to begin with. Cate added 8 cards to the stack. Elena then took 7 cards from the stack. Finally, Cate took 7 cards from the stack. How many cards were left in the stack? 7x + 3y = -9Slope intercept form The temperature at noon was 5 degrees and drops 15 degrees. What is the new temperature? Jayden used a Groupon at the local pizza shop. Instead of paying $15, for the pizza, he paid $12.Haley and Arianna agree that the percent of decrease is 20% but their explanations differ. Haley says to find the 20%, you have to determine what percent of 15 is 12. Arianna thinks you have to determine what percent of 15 is 3. Who is correct? What is a phenotype? *The genetic makeup of the individualThe expression of a trait; PHysical appearanceAn organism that has the same genes for a trait (example: TT or tt)The passing of traits from parent to offspring A class of 50 students is divided into two groups. One group has 8 more students than theother. How many students are in each group?$76 nor week plus S16 for each sale How long does Penelope's shroud burial trick work for?