You have the following code:
----------------------------------------------------------------------------------------------
fruit_list = ["strawberries", "bananas", "apples", "grapes"]
total_cost = 0
for fruit in fruit_list:
if fruit in ["apples","bananas"]:
total_cost += 3
elif fruit == "cantaloupe":
total_cost += 5
elif fruit in ["raspberries","strawberries","grapes"]:
total_cost += 4
-------------------------------------------------------------------------------------------------

What will be the value of total_cost?

A.13
B.14
C.15
D.7

Answers

Answer 1

Answer:

7

Explanation:

We already have the functions that tells us how much to add. If you add all this, you will get 12. HOWEVER because cantaloupe is in the list, the computer does not count that. So if we add that again without 5(how much the cantaloupe costs), we get 7.


Related Questions

a student is going to e-mail a file she has created and needs to reduce the file size. what tool should she use to reduce the file size?

Answers

Answer:

Compress the file to reduce the file size.

Melissa is an amateur photographer and plans to post her best photos on a media-sharing network. She wants to include descriptions to identify the photos for viewers. What should she add to the photos

Answers

Melissa as  an amateur photographer should add Tags to the photos.

What is tag?

Tags is known to  be the ay that is said to be used in basic formatting tool employed in HTML (hypertext markup language) and others.

Due to the situation above, Melissa as  an amateur photographer should add Tags to the photos.

See options below

What should she add to the photos?

a. Metadata

b. Emojis

c. Tags

d. Reviews

Learn more about photographer  from

https://brainly.com/question/25821700

#SPJ1

When you collaborate or meet with a person or group online, it is called
1. cloud computing
2. social networking
3. text messaging
4.web conferencing

Answers

When you collaborate or meet with a person or group online, it is called  social networking.

What is social networking?

The term  social networking is known to be the act of meeting people online, interacting with them and even making friendship with them.

Therefore, When you collaborate or meet with a person or group online, it is called  social networking.

Learn more about  social networking from

https://brainly.com/question/1027666

#SPJ1

What does the processor contain?

Answers

Answer:

It consists of an arithmetic and logic unit (ALU), a control unit, and various registers. The CPU is often simply referred to as the processor.

Explanation:

when you start a new, blank document, you usually end up changing the font to arial 11.5 point. how can you make these settings the default for this and all future new documents?

Answers

The fonts setting can be change to default by opening the format menu, after that click Font, and then click the Font tab. Make the needed changes that you want, and then click Default.

What is font?

A font is a set of printable or displayable text character s in a specific style and size.

These are the complete set of character like numbers, letters, and symbols/icon within a typeface, which is the design of the characters.

Hence, we can easily change the fonts setting to default.

Learn more about fonts here,

https://brainly.com/question/14934409

#SPJ1

In deviation detection, new data is compared with a set of data called (blank) data. before data mining, it is important to remove (blank) data from databases.

Answers

In deviation detection, Predictive  analysis is used to know future results using past data while Descriptive analysis is used to see or find patterns in existing data.

What is deviation detection?

This is known to be a  Data mining work  where one build a model that tells about the most vital changes in the data from previously used or normative values.

Therefore, In deviation detection, Predictive  analysis is used to know future results using past data while Descriptive analysis is used to see or find patterns in existing data.

Learn more about deviation detection from

https://brainly.com/question/22257149

#SPJ1

Answer: in deviation detection, new data is compared with a set of data called training data. before data mining, it is important to remove noisy data from databases.

Explanation: plato

What Does The Computer Monitor Contain?

Answers

Answer:

a visual display, some circuitry, a casing, and a power supply.

Explanation:

Screen, Layered Glass, Stands, Power Connector, Interface Board, Amplifier Circuit, and Reflectors and Light Sources.

You can open a movie maker project file any time in a media player. (1 point) true false

Answers

Answer:

yes it is true you can make a movie Maker project file anytime in a media player.

A spreadsheet program allows a user to _______. a. perform complicated calculations automatically b. deliver elegant presentation to a large audience easily c. organize, send, and retrieve e-mails quickly d. keep viruses from infecting their computers please select the best answer from the choices provided a b c d

Answers

Answer:

c

Explanation:

Hello! I am having trouble with this code and I am trying to find out the error. (html5 by the way.)

body {
background-color: lightblue;
color: deeppink;
}

h1 {
width: 100%;
}

{
float: right;
width: 200px;
margin: 10px;
border-radius: 20px;
}

p {
text-align: left;
font-family: fantasy;
font-size: 14px;
}

Answers

Explanation:

On line 10 you wrote:

{

float: right;

width: 200px;

margin: 10px;

border-radius: 20px;

}

This is the origin of your error. You have not declared any selector for the properties. Remember CSS rules take the following form:

selector {

   property: value;

}

While browsing the internet, you notice that your browser displays pop-ups containing advertisements that are related to recent keyword searches you have performed. what is this an example of

Answers

Answer:

Cookies or targeted advertising.

Develop a command sequence would you use to alter the amount of space between the text in a text box and the text box border?.

Answers

The use of the Line and Paragraph Spacing command can  help one to alter the amount of space between the text in a text box and the text box border.

Which command changes line spacing?

When one click on Home tab, one should click the Line and Paragraph Spacing command, and when one has select the line spacing that one needs, the selected line spacing will alter in the document.

Note that the use of the Line and Paragraph Spacing command can  help one to alter the amount of space between the text in a text box and the text box border.

Learn more about command sequence from

https://brainly.com/question/13258375

#SPJ1

So I got the MSI GE76 Raider and I dont know if I should get a new better gaming laptop or not, is the GE76 good for gaming?

Answers

Answer:

yes it is

Explanation:

The MSI GE76 Raider is one of the best gaming laptops for those looking for a desktop replacement. It even brings excess amounts of RGB lighting courtesy of a full light bar under the wrist rest. Of course, that all comes at a cost.

Doctrine Creative is a video production company with its own file server within its business office. The company needs to be able to access the newest commercial it just finished editing, but the file is too large to send over the World Wide Web. Which type of network would the company be using if it gives the new clients access to its personal file server?


Internet


ftp


Intranet


Extranet

Answers

Answer:

answer is D

Explanation:

The network which the company uses if it gives the new clients access to its personal file server will be Extranet.

What is an extranet?

An intranet that allows authorized outside people to browse portions of it, allowing businesses to securely share information through the internet.

Doctrine Creative is a video production company with its own file server within its business office.

The company needs to be able to access the newest commercial it just finished editing, but the file is too large to send over the World Wide Web.

The network which the company uses if it gives the new clients access to its personal file server will be Extranet.

Thus, the correct option is D.

More about the extranet link is given below.

https://brainly.com/question/13263185

#SPJ1

Which sentence will be parsed by the following CFG?
s a NOUN VERB
ОА.
cats walk
ОВ.
a cat walks
Ос.
A cat walks
OD. cat walking

Answers

I think that cats and walk are the right answer because it is the one that makes the most sense to put hope it helps

____ management is designed to replace or change parts of the operating system that need to be enhanced or replaced. a.Patch b.Kernel c.OS d.VFS

Answers

Patch management is designed to replace or change parts of the operating system that need to be enhanced or replaced.

What is Patch management?

This is known to be the act or process of sharing and applying updates to different kinds of software.

Note that Patch management is designed to replace or change parts of the operating system that need to be enhanced or replaced.

Learn more about Patch management from

https://brainly.com/question/16270302

#SPJ4

What's bitcoin? what is it used for? how can I turn it into real money? What are stocks? How can I invest?

Answers

Answer:

Bitcoin is a form of digital cash that eliminates the need for central authorities such as banks or governments. Instead, Bitcoin uses a peer-to-peer internet network to confirm purchases directly between users.

Launched in 2009 by a mysterious developer known as Satoshi Nakamoto

Bitcoin (BTC) was the first, and most valuable, entrant in the emerging class of assets known as cryptocurrencies.

Bitcoin can be a risky investment, so it's important to think carefully about your goals and your strategy before you decide. While Bitcoin's price has appreciated dramatically over time, not every person who has bought it has gotten a piece of those gains. Because cryptocurrency markets in general are very volatile, it's nearly impossible to find the "right time" to buy or sell — the price could soar moments after you sell, or plummet as soon as you buy.

What is the purpose of bitcoin? Bitcoin was created as a way for people to send money over the internet. The digital currency was intended to provide an alternative payment system that would operate free of central control but otherwise be used just like traditional currencies.
There are many ways to convert your cryptocurrency to real cash. Peer to Peer, or online exchanges is available. I think BetCoBit is the best place to convert cryptocurrency at a low price. This is how simple BetCoBit is just login and add money into your BetCoBit account and withdraw that money by choosing different payment methods.
What are stocks?
a share which entitles the holder to a fixed dividend, whose payment takes priority over that of ordinary share dividends.
How can i invest?
To buy crypto, you have to first create an account on a crypto exchange. Practically speaking, it's just like the brokerage platforms you may be more familiar with: Crypto exchanges allow buyers and sellers to exchange fiat currencies—like dollars—for cryptocurrencies like Ethereum, Bitcoin or Dogecoin.

Explanation:

That is not as hard as you thought.

Answer:

You can't

Explanation:

Bitcoin doesn't make you money

instead it takes all your time so they get the money and not you.

The internet service that allows users to navigate among many pages is.

Answers

Answer:

The world wide web

Explanation:

The world wide web is a hypertext information system that links internet documents and allows users to navigate through the Web, by using a computer mouse to click on “links” that go to other web pages.

Help ASAP this Answer is simple…

why is fair use important

Answers

Answer:

to ensure that the rights of the copyright holders are fair or balanced properly

Explanation:

hope this helps

Compare and contrast sources and types of credit, including costs and benefits of installment
credit, collateralized loans versus unsecured credit, credit cards, mortgages, auto loans, and
student loans.

Answers

Answer:

loan your mom

Explanation:

Government entities may pressure upstream Internet service providers to _____. a. track and monitor the Internet activities of individuals b. accept defamation or copyright infringement claims c. immediately take down particular hosted material d. deregister domains because of their hosted content

Answers

Explanation:

The graph of y = √x is reflected in the y-axis, is horizontally stretched by a factor of 2, shifted 3 units up and 1 unit left. What is the equation of the transformed graph?

Original: y = √(x)

Reflected in the y-axis: y = √(-x)

Horizontally stretched by a factor of 2: y = √(-x/2)

Shifted 3 units up: y = 3 + √(-x/2)

And 1 unit left: y = 3 + √(-(x+1)/2)

Describe the shorthand representation of the structure of a relational database. Why is it important to be able to represent the structure of a database in a shorthand fashion

Answers

The  shorthand representation is used to depict the database table in an easier way or manner.

What is the shorthand representation?

A symbol is known to be a kind of shorthand representation for the object of a specific structure.

Note that the shorthand representation is used to depict the database table in an easier way or manner. as one can be able to do things easily because there is a short cut.

It is known to tell or address the Database table in a simple and reasonable way with ease of utilization.

Learn more about Database from

https://brainly.com/question/26096799

#SPJ1

You are using a crimper to attach an RJ45 connector to a Cat 6 UTP cable. You need to use the T568A standard to connect the individual wires to the connector. Which wire should be connected to pin 1

Answers

Based on the scenario above, the wire that should be connected to pin 1 is the green and white wire.

What is a wire?

A wire is known to be a kind of material that is said to be flexible in nature and contains a metallic conductor and it is one that can carry electric current in any given circuit.

Since one need to use the T568A standard to connect the individual wires to the connector the wire that should be connected to pin 1 is the green and while wire.

Therefore option d is correct because it is T568A standard to be able to link the individual wires.

See complete question below

You are using a crimper to attach an RJ45 connector to a Cat 6 UTP cable. You need to use the T568A standard to connect the individual wires to the connector. Which wire should be connected to pin 1

a. orange and white

b. green

c. blue

d. green and white.

Learn more about wire from

https://brainly.com/question/25922783

#SPJ2

When should a user consider restoring the operating system.

Answers

A user can consider restoring the operating system if the programs or apps do not start properly or when they are hanging/freezing.

What is an operating system?

This is known to be a software that aids a computer's basic functions, such as working on tasks and others.

Note that A user can consider restoring the operating system if the programs or apps do not start properly or when they are hanging/freezing.

Learn more about  operating system from

https://brainly.com/question/22811693

#SPJ1

What command will provide information about the dynamic routing protocols on your Cisco router and their configurations

Answers

you use the show ip protocols command.

9.18 lab: even/odd values in a vector write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 2 4 6 8 10, the output is: all even ex: if the input is 5 1 3 5 7 9, the output is: all odd ex: if the input is 5 1 2 3 4 5, the output is: not even or odd your program must define and call the following two functions. isvectoreven returns true if all integers in the array are even and false otherwise. isvectorodd returns true if all integers in the array are odd and false otherwise. bool isvectoreven(vector myvec) bool isvectorodd(vector myvec)

Answers

def is_list_even(my_list):

   for i in my_list:

       if(i%2 != 0):

           return False

   

   return True

   

   

def is_list_odd(my_list):

   for i in my_list:

       if(i%2 == 0):

           return False

   

   return True

   

def main():

   n = int(input())

   lst = []

   

   for i in range(n):

       lst.append(int(input()))

   

   if(is_list_even(lst)):

       print('all even')

   

   elif(is_list_odd(lst)):

       print('all odd')

   

   else:

       print('not even or odd')

       

       

if __name__ == '__main__':

   main()

you want to be able to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose. which feature should you use?

Answers

The  feature to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose in the above scenario is data validation.

What is data validation?

Data validation is a term that connote the act of monitoring the truthfulness and quality of source data before one can make use of it, importing or even  process data with it.

Note that The  feature to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose in the above scenario is data validation as it ensure that users can make their own choice.

Learn more about data validation from

https://brainly.com/question/27138101

#SPJ1

2
In the 1940s, computers were programmed using punch cards, or pieces of paper that had holes in them that represented binary code. Ifa
ebstake was made using this type of primitive propamming, which of the following BEST describes what would need to be done to correct the
problema
OA The entire proagam of punch cards had to be re-punched.
OB. The entire preagamn of punch cards had to be loaded again and started over,
OC The entire prensam needed to be rewritten and a different set of punch cards were used.
OD. The entire progam could be fored by adding or remoanga card for the existing stack of papers.
Reset
Nest
rights reserved

Answers

If any mistake was made using this type of primitive programming, the entire program of punch cards had to be re punched again. The correct option is A.

What is punch card?

A punch card is a card on which data is able to be recorded in the form of punched holes.

Whenever a mistake is done, the punched card is scrapped and made anew one for same programming.

Thus, if any mistake was made using this type of primitive programming. The entire program of punch cards had to be re punched again. The correct option is A.

Learn more about punch card.

https://brainly.com/question/27476988

#SPJ1

Select the correct answer.
Leah deals with several file conversions every day. She frequently needs to check the properties of a file to determine the file type. Which keyboard shortcut will help her do so?
A.
Alt + Enter
B.
Alt + Space Bar
C.
Alt + Tab
D.
Ctrl +Enter
E.
Ctrl +Tab

Answers

Answer:

It's variant A (Alt + Enter)

(Some text so that brainlypatrol doesn't delete my answer)

Explain in your own words what a computer is. Expose in your answer the parts, operation, what it serves us for, etc. Why do we say that the computer is an electronic device?

Answers

Answer:

Explanation:

What is a computer?

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You may already know that you can use a computer to type documents, send email, play games, and browse the Web. You can also use it to edit or create spreadsheets, presentations, and even videos. A computer has these basic parts: Monitor, keyboard, mouse and system unit

Other Questions
Suppose the price of a TV is $600 and there are two consumers in the TV market. Joe is willing to pay $700, and Isaac is willing to pay $550. How much consumer surplus exists in this market Me pueden ayudar a hacer una tesis sobre el maltrato animal y un ttulo creativo porfavor Define relation in math PLEASE HELPWhich of the following best describes the work performed by a curator?preservationpreservationpromotionpromotionexaminationexaminationrestorationrestoration Which organ system eliminates liquids and gaseous wastes from the body?. How does the use of verbal irony contribute to the reader's understanding of pip? From the top of a cliff, the angle of depression of a boat on the sea is 22. If the height of the cliff above sea level is 40 m, calculate, correct to two significant figures, the horizontal distance of the boat from the bottom of the cliff. Besides financial reform, what else drove the Third Estate to declare itself a National Assembly?The Third Estate wanted political and social reform.The Third Estate wanted more appointments to bureaucratic positions.The Third Estate wanted the king and ministers to leave their positions.The Third Estate wanted more of a say in foreign affairs. The best experience in my life was getting my favorite book from a bookstore. I dont leave the house often so this is rare. I wanted a solid copy of my favorite book so I ask my sister to drive me. Once I got it I finished reading it in 12 hours. Then I read it again the next day, and again the day after.Can a native speaker translate this please? ASAP if possible! What is the genotype of the male in generation i? 2.09 What is the theme of Taking the Plunge? How does the theme emerge and develop over the course of the passage? Use evidence from the text to support your response. Your response should be at least THREE complete paragraphs.So far no one has used THREE paragraphs in their answer only one when I searched. So I need 3 paragraphs guys not 1 or 2 , THREE. in the novel of mice of men what is georges personality and importtant events in his life help me out here guys Four functions are listed below. f(x) | (x^2-4) (x-1)g(x) | (x+4) (x-6)h(x) | (x^2+6)k(x) | x (x^2-25)Which two functions, when graphed, have the same number of x-intercepts? A. f(x) and g(x) B. g(x) and h(x) C. h(x) and k(x) D. k(x) and f(x) how to deescalate a situation essay LAST CHANCE FOR TONS OF POINTS!!!!!!! AND BRAINLIEST!!!A boat can travel 28 miles up a river in the same amount of time it takes to travel 36 miles down the same river. If the current is traveling at 2 miles per hour, what is the speed of the boat in still water? How do you know if you or someone you know is experiencing depression, anxiety or panic attacks? Please explain how you know and what you can do to help them What are two ways in which the Information in the fifth paragraph Influences the passage as a whole?it Introduces the idea that mining is more profitable than tourism.It explains how a change in management led to decline at the Orphan Mine.Olt describes how the Orphan Mine became a prosperous uranlum mine.O it serves as a turning point in the history and fortunes of the Orphan Mine.O it shows how good management of tourist facilities led to the mine's success.ResetNext Please help with does 3 questions am trying to get my grade up A young adult recently experienced a dramatic change of fortunate 3. Manny's weekly wage as a welder are $520.75. He is single and claims 3 allowances. What amount isdeducted for federal taxes?