The add_prices function returns the total price of all of the groceries in the dictionary. Fill in the blanks to complete this function (python):def add_prices(basket): # Initialize the variable that will be used for thecalculation total = 0 # Iterate through the dictionary items for ___: # Add each price to the totalcalculation # Hint: how do you access thevalues of # dictionary items? total += ___ # Limit the return value to 2 decimal places return round(total, 2)groceries = {"bananas": 1.56, "apples": 2.50, "oranges": 0.99,"bread": 4.59, "coffee": 6.99, "milk": 3.39, "eggs": 2.98, "cheese":5.44}print(add_prices(groceries)) # Should print 28.44

Answers

Answer 1

Answer:

def add_prices(basket):

 

   total = 0

   for items in basket.values():

       total += items

   return round(total, 2)

groceries = {"bananas": 1.56, "apples": 2.50, "oranges": 0.99,"bread": 4.59, "coffee": 6.99, "milk": 3.39, "eggs": 2.98, "cheese":5.44}

print(add_prices(groceries)) # Should print 28.44

Explanation:

The python dictionary is a data structure that stores items of data as a key-value pair. The keys and values can be listed separately using the keys() and values() built-in function.

The program above uses a for loop statement to iterate over the values of the groceries dictionary to return the total sum of the values.


Related Questions

Line installers must complete a four-year university degree program in order to be hired.

True

False

Answers

Answer:

Line installers must complete a four-year university degree program in order to be hired.

Explanation:

true

Yes this fact is true

create a pl/SQL block to retieve and display information for a specific pledge. Display the pledge ID, donor ID, Pledge Amount, total paid so far and the difference between the pledge amount and total paid amount

Answers

Answer:

SELECT pledge_ID,

             donor_ID,

              pledge_amount,

              total_paid,

              pledge_amount - total paid

   FROM pledges;

Explanation:

The SELECT statement initiates the display command. It states the variables to be selected.

The variables are usually separated by a comma.

The FROM statement indicates the location from which the variables ne selected from.

; signifies the end of the query, stating that the query should be run.

Confidential corporate data was recently stolen by an attacker who exploited data transport protections.Which of the following vulnerabilities is the MOST likely cause of this data breach?

a. resource exhaustion on the vpn concentrators
b. weak ssl cipher strength
c. improper input handling on the ftp site
d. race condition on the packet inspection firewall

Answers

Answer:

c. improper input handling on the FTP site

Explanation:

Improper input handling on the FTP site is associated with encrypting and/or decrypting of input data. It has been observed that input handling on the FTP site is one of the leading causes of vulnerabilities found in contemporary's systems and applications, this is a result of application trusting which helps to establish restrictions and prevent Improper Input Handling attacks accurately.

Hence, in this case, the correct answer is "improper input handling on the FTP site"

Ben wants to create a Book class that has an instance variable serialNumber. Where should he declare the instance variable

Answers

Answer:

within the Book class but needs to also be outside of any methods.

Explanation:

If Ben is creating an entire Book class then the instance variable needs to be within the Book class but needs to also be outside of any methods. If Ben places the variable inside a method it can only be used by that method and therefore becomes an instance variable of that method and not the class. By creating it inside the class and outside the methods it can be used every single time a Book object is created. Therefore, creating an instance variable of serialNumber every time.

what is the difference between application software and system software​

Answers

Answer:

system software

1. system software is used for operating computer hardware.

2.system software is installed on the computer when the operating system is installed.

application software

1.it is used for performing specific task.

2.it is installed according to the user's requirements.

George wanted to make his website more interactive. He decided to create animation for his website. Which software can George consider to design this animation?

A. Reaper
B. Vegas Pro
C. Flash
D. Audacity
E. Quark Xpress

Answers

Answer:

C. Flash

Explanation:

Adobe Flash is a discontinued multimedia software platform used for production of animations, Rich web applications, desktop applications, mobile apps, mobile games, and embedded web browser video players. Flash displays text, vector graphics, and raster graphics to provide animations, video games, and applications.

-Wikipedia

Answer:

C.Flash

Explanation:

CAN SOMEONE DO OR LOOK UP THE PIE CHART FOR THIS ANSWER PLS AND I WILL MARK YOU BRAINLIEST BUT PLSSS HELP MEEEE!!!

Answers

Answer:

I highly recommened you use ggl charts.

Explanation:

It's free. ALL YOU NEED IS AN GGL ACCOUNT. You can also choose many types of graph you want.

Write a program that inputs numbers and keeps a running sum. When the sum is greater than 100, output the sum as well as the count of how many numbers were entered.

Sample Run Enter a number: 1 Enter a number: 41 Enter a number: 36 Enter a number: 25 Sum: 103 Numbers Entered: 4

Answers

total = 0

count = 0

while total<=100:

   total += int(input("Enter a number: "))

   count += 1

print("Sum:",total)

print("Numbers Entered:",count)

I wrote my code in python 3.8. I hope this helps

Answer:

total = 0

count = 0

while total<=100:

  total += int(input("Enter a number: "))

  count += 1

print("Sum:",total)

print("Numbers Entered:",count)

Explanation:

help with these 2 questions srry for the horrible pic​

Answers

Answer:

the first one is email address nd the second one is semi-blocked letters ? sorry if im wrong.

Explanation:

Answer:

I cant read

Explanation:

When using a software budget, you should feel very confident if you choose a solution that looks like it will come in exactly on budget, without any overage costs.

a
True

b
False

Answers

Answer:

probably false

Explanation:

because u dont want a budget to b exact u want it completely covered

Your colleague has made a suggested change to an important document you are both working
You disagree with their suggested change. They will be reviewing the changes you make before
the final version of the document is submitted to your boss. You both work remotely and are in
radically different time zones. What is the best step to take next?

Answers

Answer:

come to an agreement with your partner on how you can modify or change the suggested change

Explanation:

The best step to take is to set up a virtual meeting between both of you, find out why the reason for the disagreement, and then settle the issues.

What is the virtual meeting about?

Based on the fact that both of you cannot physically meet since both are in different location, the right thing to do is to set up a computer virtual meeting.

Conclusively, the parties involved can trash out issues and misconceptions before submitting to your boss.

Learn more about document from

https://brainly.com/question/16650739

#SPJ2

If you're a beginner to data analysis, what is the first thing you should check when you build data queries?
a. workflow diagrams
b. calculations
c. differentials
d. record counts

Answers

D. Record Counts, trust me I took notes on this and it’s also in my quizlet

Which file format should Wilson use for sending these images?

Answers

I can’t see the answer choices but I would like to say it’s JPEG am not sure. Could you at least provide the answer choices? Thanks!
JPEG I assume, please leave more context clues next time

Which of the following represents the relationship between malware and cyber terrorism? (Select all that apply).

Both are used to disrupt network service.

Both involve the use of illegal software.

Cyber terrorists can use malware as a weapon.

Network risk analysts work to prevent both.

Answers

Answer:

Both are used to disrupt network service

Cyber terrorists can use malware as a weapon

Both involve the use of illegal software

Network risk analysts work to prevent both

All are valid.

Answer:

Its all four

Explanation:

edg2021

Id k why the other person got b ad rati ngs, because it is true and they both do all of these things.

The challenge of preparing for ____________________ is in ensuring that employees do not feel that they are being prepared for termination.

Answers

Answer:

"Cross-training " seems to be the right response.

Explanation:

Cross-training seems to be the method of constructing a multi-professional workers staff with incentive plans to make sure that they must have the same tools to complete different occupational tasks throughout the organization. This will be a very broad approach besides randomized controlled training methods, both maximum and minimum frequency, for generations.

We have discussed four approaches to dealing with moral issues. Which approach is closest to your way of analyzing moral issues? Now that you are aware of different approaches, do you think you might modify your approach to include other perspectives? Explain why or why not.

Answers

Answer:

The four approaches are: The principle approach, in which decisions are made according to a principle such as the Ten Commandments or the Golden Rule The consequence approach, in which decisions are made according to their likely outcomes The virtue/character approach, in which decisions are made according to the ...

Universal Containers (UC) wants to customize basic Salesforce Reports using Lightning Experience. In which two ways can Reports be customized? Choose 2 answers v A. Add a chart. B. Add a Lightning Component. C. Add links to external pages. D. Add a filter.

Answers

Answer:

A. Add a chart.

D. Add a filter.

Explanation:

Workflow management systems can be defined as a strategic software application or program designed to avail companies the infrastructure to setup, define, create and manage the performance or execution of series of sequential tasks, as well as respond to workflow participants.

An example of a work management system is Salesforce.com.

A Salesforce Reports using Lightning Experience refers to an intuitive and powerful software tool used for visualizing and analyzing Salesforce data such as customization, filtering, grouping and creating a summary report.

In this scenario, Universal Containers (UC) wants to customize basic Salesforce Reports using Lightning Experience.

Hence, the two ways in which Reports can be customized are by adding a chart and a filter.

What term is the ability to restore service quickly and without lost data if a disaster makes your components unavailable or it destroys data

Answers

Answer:

"Recoverability" is the appropriate solution.

Explanation:

The above refers to either the DBMS work timetables where only certain processes are conducted out only when all transactions where such modifications are learned by the submission are implemented or operated. This technique is used to reinstate make informed even without system failures.

Identify the potential problem(s) involved with generating or collecting valid data.
A. Cost.
B. Bias.
C. Error.
D. Access to data.
E. All of the above.
F. None of the above.

Answers

Answer:

B. Bias.

C. Error.

Explanation:

Two of the biggest problems that can occur when generating or collecting valid data are Bias and Errors. Biases automatically make the collected data invalid since this causes the data those involved to purposefully skew the data towards the direction that best suits their biases/beliefs which makes the entire study invalid and therefore the data as well. The second main problem would be human error such as entering the wrong data numbers, choosing the wrong subject, losing the data itself, etc. Humans make mistakes and making one during a study can immediately invalidate all of the data that has been collected.

Suppose a webpage contains a single text field. We want to make the page such that a user can immediately start typing in the text field without clicking on it. What is correct way using?
1. .
2. .
3. .
4. Can't be done with only HTML5, need help of Javascript or something else.

Answers

Answer:

The answer is "Option 2".

Explanation:

In HTML5, text inputs use an autofocus attribute, which, when the page is loaded, uses a template to concentrate primarily on text fields. This attribute is a Boolean property that represents the HTML autofocus attribute, showing if the related <select> element will receive an output focus whenever the page loads if it is overruled by the user. An only form-associated entity can have this property specified in a text.

From 1995 to 1997, the number of web users

Doubled
Tripled

Quadrupled

Remained the same

Answers

Quadrupled. I think sorry if you get it wrong i do not remember much
Yup it quadrupled in 1997

A business owns a printer but the printer is used for cloud printing purposes. What type of resource is this?

Answers

I’m confused , what are the choices ?

Derek is creating an animation for his class project. What is the first step Derek should follow while creating the animation?
A. storyboarding
B. preparing a script
C. adding voices to the animation
D. choosing an animation tool

Answers

Answer:

1. Script,2.Storyboarding,3.Choosing a Animation tool, 4. Adding voices to the animation

Explanation:

Script comes first since that you have to follow everything on there, then you have to make a illustration of the storyboard, then it comes to choosing which animation tool is better, and last but definitely not least is adding voices to that animation.

Answer: preparing a script

Explanation:

Certification is a requirement in pursuing a career as a line installer.

True

False

Answers

Answer:

False

Explanation:

This is rue because, in line installation career, there is no single need for certification but rather to acquire the required skill.

The ability to learn how to be a line installer from an experienced personel is far important than someone who tried to obtain a certification without any acquired skilled to show for it.

Answer:

False

Explanation:

edg2021

Employer training or apprenticeships are required of electrical line installers and repairers. These programs often last up to five years. Certification is not mandatory; however, certification for line installers and repairers is available and does show that you have the right skills and knowledge for this technical job. Often learning on the job is the best way to get experience in this type of position, but it still requires basic understanding of equipment, data communications, and the physical layer of a network.

If an element contains text or another element, it is marked using a ______tag set in which an opening tag and a closing tag enclose the element content.

a. single-sided
b. two-sided
c. one-sided
d. double-sided

Answers

Answer:

b. two-sided

Explanation:

If an element contains text or another element, it is marked using a two-sided tag set in which an opening tag and a closing tag enclose the element content.

For example, <p>it is very important to "check" the expiration date of goods before buying them.</p>. In this scenario, the <p> represents the opening tag while the </p> represents the closing tag in HTML programming.

define an array of 12 structures of type DayMon. Name the array maps[] and initialize the array with the names of the 12 months in a year and the number of days in each month.

Answers

Answer:

#include<stdio.h>

int main(){

 

   int i,n;

   char* maps[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};

   for(i=0;i<12;i++){

       printf("%s\n", maps[i]);

   }

   printf("\n");

 

   int days[] = {31,28,31,30,31,30,31,31,30,31,30,31};

   for(i=0;i<12;i++){

       printf("%s %d\n", maps[i], days[i]);

   }

   printf("\n");

 

   return 0;

}

Explanation:

The C source code above declares two arrays, the maps array which is initialized with the months of the year and the days array which is initialized with the number of days of each month in the maps array. Both arrays are printed out side by side like a table of months and the days in each month.

The tags are always enclosed within a pair of
(a) curly
(b) square
(©) angular​

Answers

Answer:

(©) angular​

Explanation:

The tags should always be enclosed with a pair of angular brackets

In the case of Hyper text markup language (HTML) the brackets that should be used is angular brackets i.e. (< and >)

So as per the given situation, the option c is correct

And, the rest of the options are incorrect

Therefore the tags that should always enclosed with a angular pairs

Answer:

(©) angular

Explanation:

The tags are always enclosed within a pair of angular.


on the surface of a magnetic disk fragmentation occurs when file is stored in non-contigious sectors on the disks surface?

Answers

manyetik disk parçalanması, dosya disk yüzeyinde bitişik olmayan sektörlerde depolandığında meydana gelir.

Relationship between sped and time on statistics

Answers

The speed of a moving body is the distance travelled by it in unit time. If the distance is in km and time is in hours, then the speed is km/hr. If the distance is in m and the time is in seconds, then the speed is m/sec.

Match the example with the type of collection.
___('casa': 'house')
___[3,5]
___(3, 5, 'dog')
A) list
B)tuple
C)dictionary

Answers

Answer:

1.c

2.list

3.tuple

Explanation:

Dictionary—('casa': 'house'), List - [3,5], Tuple - (3, 5, 'dog') are the example with the type of collection. Hence,

What is collection?

A collection is a group of things, usually one that someone has assembled. For instance, many kids have a collection of comic books. The term "collection" contains the word "collect." If you enjoy collecting things, there's a good chance you already have a collection of some kind.

4 The Concept of "Collection" A collection is a gathering of things that have been picked out with a specific goal in mind. Similar ideas include Set, Aggregation (data modeling), Dataset (science and business), and Corpus (linguistics and literary analysis). We favor collecting since it is less defined and has fewer connotations.

Old French collection, a noun of action from the past-participle stem of colligere ('gather together'), is derived from Latin collectionem (nominative collectio), which means 'a gathering together'.

Thus, words are arranged above,

For more information about collection, click here:

https://brainly.com/question/19053793

#SPJ5

Other Questions
_____ season is when the weather is best in a locale and when many people have time off for vacation.LowAverageShoulderHigh Which word goes into each sentence? (this is critical for my grade)comida/alquilar/te gusta/bicicletaA ti qu ______________ hacer?A m me gusta montar en ____________.Me gusta preparar la ______.Los sbados me gusta ____________ un DVD.Please help correct answer will get brainliest! Find tan theta. A.16/20B.12/20C.16/12D.12/16 i'm gonna make someone branilest randomly just for answering something. good luck oof Johanna took her little brother to the playgrond because he likes to swing Look at diagram that shows johanna pushing her brother on swing which statement is true about the transformation between kinetic and potential energy while the boy swings? A bracelet is made by stringing together four beads. Each bead is either red or green. How many different color patterns arepossible for the bracelet, where patterns are considered the same if rotating one wil produce the other, as shown here?Plz I need this quickly Complete each sentence using the drop-down menu. Information on local driving laws can be found on a website. A class textbook can be found on a website. An article about how to donate blood can be found on a website. An popular magazine can be bought off of a website. How does Mrs.Moreno's view of money change by the end of the story? To help you remember the processes that enable cells to live, you will be using the processes to write a story. You will be writing your own CREATIVE story that should be different from everyone elses. In your story, you must include passive transport, active transport, osmosis, simple diffusion, and facilitated diffusion. While you are writing, be sure to underline the processes.Who is willing to do this for me and you have to be for real ab this plz help if u are serious I will give u my email so u can email it to me when u get done June's mother was 29 when June was 5 years old. How old will June be when she is one-quarter her mother's age? James is buying a pair of jeans that cost $39.99. If the price is discounted 40%, and the sales taxes is 8%, what will James pay for the jeans? Janey paints a block of wood with gold glitter for an art project. The block measures 8 inches by 10 inches by 20 inches. After she's done, she decides to make two blocks by cutting through the block on the red line. She still wants each block to be covered with gold glitter. What is the total area of the cut surfaces she still needs to paint? Answer the questions to find out. 1. What is the shape of each cut surface? What are its dimensions? Write your answer in the space below. 2. What is the area of each cut surface? Write your answer in the space below. 3. What is the total area Janey still needs to paint? Explain how you found your answer. Write your answer in the space below. Please hurryIn the figure, EBA EDC.Triangles EBA and EDC are connected at point E. Angles A B E and E C D are right angles. Angle A E B and D E C are congruent. Sides B E and E D are congruent.Because CPCTC, which relationships are true?Check all that apply. What is JROTC? please help me im begging please 10 pointsA An organization for future politicians B A CTSO for future politiciansC A military officer training program D An organization for future police officers Guess the song....Fall into the deep endFeeling alive while you fight for your lifeAs you swim back to the beachesDon't be scared of the tide just prepare for the rideAs you float, you float, you floatI think I'm misunderstoodI think I'm just under goodI think I'm not so badTell me what's wrong with thatI think I'm over my headI think I'm over depressedI know I overthinkSpending nights over sinksThrow up 'cause I can't find out why I'm sadEverything is bad, but it seems fineNo signs of struggle, always neglectedBoy in the bubble can't be affectedCan't get in trouble, can't get seem to get thatIf not for trouble, no learning lessonsTrying to be subtle, trying to be gentlePhysically fit but sick in the mentalHave a nice day Which of the following statements is false? (5 points)The sum of two rational numbers is always rational.The product of a nonzero rational number and an irrational number is always irrational/ The product of two rational numbers is always rationalThe sum of two irrational numbers is always rational. 18$ for three book what is the unit rate Find the value of x that will make A||B.A4x2xx[?] Gavin needs to make 2 batches of mango paint.How you could find the total amount of paint Gavin mixed Dawn earned $97.50 for 10 hours of work. Amy earned 120 in 12 hours of work how much did each person earn per hour Steam Workshop Downloader