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

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

How did Bill Gates benefit from free enterprise? Need a paragraph please. Will give the branliest!!

Answers

Answer:

Bill Gates used his skills and brains to build a business. In conclusion, Bill Gates was very successful with his industry thanks to free enterprise. He, along with his employees and friends, created and almost perfected the software known as Microsoft. The free enterprise system provides the right to private enterprise, which allowed him to choose his own business and to run it without governmental influence. Because he could create his own business and design his own products, Gates was able to specialize in technology.

Explanation:

Which of the following is an example of metadata about a webpage?



The title of the webpage


The body of the webpage


An tag on the webpage


All of the above

Answers

the title of the webpage

An example of metadata with respect to the webpage is the title of the webpage.

The following information consider for the metadata is:

The website of metadata contains the title of the page and the meta description for each & every page. It gives the search engines as it has the significant importance related to the content and the motive of every individual page on the website.Also, it helps to measure whether the website is relevant and sufficient to show the search results.

Therefore, the other options are incorrect.

Hence, we can conclude that an example of metadata related to the webpage is the title of the webpage.

Learn more about the metadata here: brainly.com/question/14699161

Complete the procedure for pasting content from a Word document in a message by selecting the correct term from
each drop-down menu.
1. Open a Word document, highlight the content to copy, and press
2. Click
of a new e-mail message, and then press Ctrl + V.

Answers

Answer:

Ctrl + C

in the body

Explanation:

Answer:

Ctrl+C

in the body

Explanation:

file:///media/fuse/drivefs-0142e6928396ed2afff070ead0fbbbcd/root/JerooLessonFourLabA_1.pdf
my teacher told said to clean the whole map in jeroo and plant the flowers all around how do i do it?

Answers

Answer:

it says page does not exist

Explanation:

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.

name instances in the past where social media has kept you informed about the latest news around the country​

Answers

Many things such as current things in politics and certain movements and protest. It has also told me about many things happening in other countries that I don’t usually hear about

Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.

Answers

Answer:

Example 1:

def function(num):  

   print(num*2)

Example 2:

function(5)

num = 2

function(num)

function(3-1)

Explanation:

Given:

See attachment for complete question

To start with Example (1)

def function(num):  

   print(num*2)

Note that; the above code segment which doubles the parameter, num could have been any other code

In Example (1), the parameter is num

For example (2):

We can call the function using:

#1. A value:

function(5)

In #1, the argument is 5; a value

#2. A Variable

num = 2

function(num)

In #2, the argument is num; a variable

#3. An Expression

function(3-1)

In #3, the argument is 3-1; an expression

Section 6.9 of your textbook ("Debugging") lists three possibilities to consider if a function is not working.

Describe each possibility in your own words.

Define "precondition" and "post-condition" as part of your description.

Create your own example of each possibility in Python code. List the code for each example, along with sample output from trying to run it.

Answers

Answer:

www.dso hellooo miaralo

Match each feature to whether it influences audio or video quality

Answers

Answer:

Video: Frame Rate, Color depth, Resolution

Audio: Sampling Rate, Bit Depth

Explanation:

Use the drop-down menus to complete the steps to share a presentation through OneDrive.
1. Go to the File tab, and select
2. A Windows screen will open, asking you to upload a copy of your presentation to
3. If you do not upload the presentation, another user cannot edit the file
4. After uploading the document, select the editing rights to give to the recipient.
5. Enter the email address of the user you want to receive the presentation, and click
V

Answers

Answer:

Share

OneDrive

In real time

Send

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?

Why is it a good idea to restate in your own words what you heard someone say? It can reduce the chances of a miscommunication. It shows that you care about what the person has said. It lets you have a chance to talk instead of only listening. It demonstrates that you are correct.

Answers

Answer:

It can reduce the chances of a miscommunication.

Explanation:

Communication can be defined as a process which typically involves the transfer of information from one person (sender) to another (recipient), through the use of semiotics, symbols and signs that are mutually understood by both parties.

An effective communication can be defined as an act which involves conveying or disseminating information efficiently and effectively from an individual (sender) to another (recipient) without any redundancy. Thus, effective communication ensures that messages or information are transmitted properly, guarantees a feedback, lacks the use of harsh tones, ensures both parties are well understood, gives room for clarity etc.

Hence, it is a good idea to restate in your own words what you heard someone say because it can reduce the chances of a miscommunication.

This ultimately implies that, the recipient or receiver of a message should endeavor to repeat what he or she heard the sender say, so as to ensure the message was well received and to limit the chances of responding with a wrong feedback i.e miscommunication.

hi good morning how are you all
I hope you all are fine
ok now question is what is LAN?
have a nice day

Answers

Answer:

Local area network

Explanation:

d6odyiitdidditsitstiistssitdditzdditidztsto

It’s a local area network, a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building.

someone please help asap!!!!

Answers

Answer:

B

Explanation:

The cost should be on the form, not user-inputed

Umm I think Is B Plz Dont choose my answer if you feel like is wrong

1) What is a RAM and what are it's functions?

2) What is a ROM and what are it's functions? ​

Answers

Answer:

The interpretation of the statement is characterized in the answer section below.

Explanation:

RAM:

This would be the real physiological remembrance of such a computer where even the OS and initiatives were also stacked as well as stored so that the processor could be made available extra rapidly.

The function of RAM:

It's own key marketing strategy as both temporary storage with program guidelines that could be brought major more by CPU even before needed.

ROM:

ROM contains computing which enables the computer system to commence as well as replenish every time these are switched on.

The function of RAM:

Most PCs have such a minuscule percentage of ROM which stores government initiatives, including the program which boots just one desktop.

Describe the different non-printing characters,​

Answers

Answer:

or formatting marks are characters for content designing in word processors, which aren't displayed at printing. It is also possible to customize their display on the monitor. The most common non-printable characters in word processors are pilcrow, space, non-breaking space, tab character etc.

Explanation:

What does IDLE stand for

Answers

Answer:Integrated Development and Learning Environment

Explanation:

Integrated Development and Learning Environment

python exercise c2 q4
Sam wants to write a code that will produce the following:
000
001
010
011
100
101
110
111

He doesn’t know where to start so he starts with the basic:
00
01
10
11

However, he also has trouble finishing this code. He only has a basic idea. Help him to complete the basic version first:

for i in range (0, 2):
for j in range (0, ): (1 mark)
print( i , ) (1 mark)



Now that you know the basic, complete the code that will print the chart 000, 001….all the way to 111 (Hint: look at the code you just complete. This time you probability need 3 for loops, one within another)

for i in range (0, 2):
for j in range ( , ): (2 mark)
for k in range ( , ): (2 marks)
print( , , k ) (1 mark)

Answers

Answer:

for i in range (0, 2):

 for j in range (0, 2):

   print(i , j)

and

for i in range (0, 2):

 for j in range (0, 2):

     for k in range (0, 2):

       print(i , j, k)

Explanation:

The nicer method of doing this would be:

for i in range (0, 8):

 print("{0:03b}".format(i))

Andrew likes to purchase his school supplies online. What are two advantages of doing so?


A.
It is possible for his information to be accessed or stolen by a third party.

B.
All his personal information is sent digitally and does not change when transmitted.


C.
Because the information is sent digitally, there are an infinite number of different signals possible.

D.
Because the information is sent quickly, he can receive his order more quickly.

Answers

Answer:

bd

Explanation:

Answer:

The answer is B.All his personal information is sent digitally and does not change when transmitted. And D.Because the information is sent quickly, he can receive his order more quickly.

Explanation:

I took AP EX quiz.

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:

b. What significant values have you learned while learning the tools and utensils?

Answers

Attempts to use computer technologies to enhance learning began with the efforts of pioneers such as Atkinson and Suppes (e.g., Atkinson, 1968; Suppes and Morningstar, 1968). The presence of computer technology in schools has increased dramatically since that time, and predictions are that this trend will continue to accelerate (U.S. Department of Education, 1994). The romanticized view of technology is that its mere presence in schools will enhance student learning and achievement. In contrast is the view that money spent on technology, and time spent by students using technology, are money and time wasted (see Education Policy Network, 1997). Several groups have reviewed the literature on technology and learning and concluded that it has great potential to enhance student achievement and teacher learning, but only if it is used appropriately (e.g., Cognition and Technology Group at Vanderbilt, 1996; President’s Committee of Advisors on Science and Technology, 1997; Dede, 1998).

How do you predict technology will continue to change the marketing and promotions industry?

Answers

Answer:

The in person marketing industry won't completely die down, but now with the pandemic hitting forcing a lot of people to do deals, sell, and promote things online. Advertising is only going to grow online as time goes on, and marketing will follow close behind.

Explanation:

Select the correct answer from each drop-down menu.
Look at Marta's email signature and fill in the missing elements.
In the first box the answers are:
Editor-in chief
Tel: 2472367
Date:7/6/2015

Answers

Answer:

Editor-in chef, and Tel: 2472367

Explanation:

A strong technique to present your professionalism to your readers and provide them with your contact information is through your email signature.

What is E mail?

Each email has a signature at the bottom, which helps you make a good first impression and sets you apart from your competitors.

A polished email signature contains vital details about you and your company. Your name, job title, company, phone number, address, and website link will all be listed on it.  

Although it can do much more, a genuinely professional signature will include your picture and company logo, social network icons, and a call to action.

Therefore, A strong technique to present your professionalism to your readers and provide them with your contact information is through your email signature.

To learn more about Email, refer to the link:

https://brainly.com/question/14666241

#SPJ2

can someone plz explain how python is related to flowcharts

Answers

Answer:

wha..

Explanation:

What is the best way to prove you did your research on a person you contact via email for help or guidance? A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background B. Tell the person generally how much you respect his/her career; if you're too specific, it will be overboard and you may turn the person off

Answers

Answer: A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background.

Explanation:

If you were to write an application letter for employment at a company, you would include certain details of the company that you found out whilst researching them so that your chances of being hired are improved.

The logic is the same here. In order to prove that you have researched a person, the proof lies in what you found out during that research. In this scenario, that includes specific projects that the person has worked on of recent.

Which of the following file formats allows you to share and save documents without a designated application? Ο
Α. HTM
B. PDF
C. JPG
D. MP3​

Answers

Answer:

B. PDF

Explanation:

For online fax service, fax documents are usually in PDF, TIFF or plain text formats.

Answer: PDF

Explanation:

a p e x

1. What are the advantages and disadvantages of the digital darkroom as compared to a regular darkroom?
2. What are layers? Why would a layer be used?
3. Which photo editing software program is the best? Why?
4. Some people argue that photography should represent the world as it is and that manipulations of an image with photo editing software ruins the truth of photography. Do you agree or disagree? Why?
5. What are the advantages of using a photo editing software program? What are the disadvantages?
6. Choose one photograph that you have taken that could be improved by photo editing. Describe what you would change in the photograph and what tools or features you would use to make the changes.
7. What are three different changes that a photo editing software program can make? Describe a situation in which each of the three changes might be made (you’ll have three situations each describing a change).
8. What are three different photo editing software programs? Describe each software program.
9. If you had the option to use any photo editing software program, which one would you choose? Why? What advantages would this software offer your particular style of photography or your skills?
10. What are some of the legal and ethical issues that could result from using manipulated photographs? Do altered photographs represent the “truth”?

Answers

Answer:

2.unsourced material may be challenged and removed. Layers are used in digital image editing to separate different elements of an image.

A business analyst compares 2017 daily sales to 2018 daily sales using descriptive statistics for each. In 2017, the standard deviation of daily sales was 73.87, while in 2018 the standard deviation of daily sales was 136.32. The analyst could conclude that ____________.

Answers

Answer:

The analyst could conclude that there was more variation in sales in 2018.

Explanation:

Given

[tex]SD_{2017} = 73.87[/tex]

[tex]SD_{2018} = 136.32[/tex]

Required

Conclusion about the standard deviations

In statistics, standard deviation gives the average variation in the data being measured.

The standard deviation of 2018 is more than that of 2017. This implies that, in 2018, there is more variation in daily sales compared to 2017

So, the analyst could conclude that there was more variation in sales in 2018.

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:

Other Questions
CommonLit Little Things are BigPlace yourself in Coln's shoes. How do you think you would have responded in this situation? Has anything similar happened to you? A 15 meter trunk broke and fell against a wall. The base of the tree is 10 meters from the wall. Found the distance from the ground to the top of the tree. Round your answer to the nearest tenth. Identify which trig function you will be using to solve the problem. A school administrator bought 6 desk sets. Each set consists of one table and one chair. He paid $48.50 for each chair. If he paid a total of $663 for the 6 sets, the cost of each table is a.$ 54.5b.$62.00c.$ 110.50d.$ 159.00 Which number represents 3.5 x 10^9 Could someone help me that knows and won't put a bad answer. 30 points. 4. Sally applies a horizontal force of 462 N with a rope to drag a wooden crate across a floor with a constant speed. The rope tied to the crate is pulled at an angle of 56.00 . c.What work is done by the floor through force of friction between the floor and the crate Read the excerpt from the supporting text "Disease Central" in When Birds Get Flu by John DiConsiglio.In 1958, scientists at the CDC made their first trip overseas. A team went to Southeast Asia to respond to an epidemic of smallpox and cholera.The author uses this passage to help the reader focus onwhy Dr. Dowell is in Thailand.why epidemics are dangerous.why scientists work for the CDC.why the CDC was formed. hii pls help ill give brainliest if you give a correct answer :) What is this answer? Please help I dont get it 6.5,5.5,4.5,3.5,_,_Whats the number pattern? Simplify the following if x = 2 & y = 5:1. 3x + y =2. 3x + 2y =3. 3y + 2x =4. 10x + 4y + 7x =5. 8y + 5x =6. 7x + 4y = Please Help Im failing geometry and I need to pass this 11175StreakWhat year did the Civil War begin Accumulating too many points on your license within a certain time frame can result in your license being suspended.truefalseanswer: true which of the following graphs shows a linear function? HELP ASAPA horse runs 66 miles in three miles? Expanding Expressions3(x + 3)4 points4(x - 7) *4 points5( x + 12) *4 points-2(x - 9) *4 points-3( x + 7) * Which statements describe the characteristics of Cubism in the painting Violin by Pablo Picasso?Choose all answers that are correct.It has fragmented shapes that are knitted together to form a unified whole and overall design.It was made using the passage technique of leaving one edge of a shape open so it merges with the surrounding shapes.It has a variety of colors and many fine details.The violin in the painting was shown from a number of different angles.It was an experiment in showing three-dimensional objects on a flat surface.The violin in the painting was reduced to its basic geometric shapes. Jay simplified the expression 3(3+123)4.For his first step, he added 3+12 to get 15.What was Jays error? Find the correct answer.