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
hichkok12 [17]
3 years ago
15

The function below takes one parameter: a dictionary (dictionary). Complete the function so that it prints out each value stored

in the dictionary, each on a separate line. Recall that dictionaries store key:value pairs. Also, when you iterate through a dictionary with a for loop, you are interating through the keys. For this question, you'll need to lookup each key in the dictionary to find its value.
Computers and Technology
1 answer:
frosja888 [35]3 years ago
3 0

Answer:

  1. def processDict(dict):
  2.    for x in dict:
  3.        print(dict[x])
  4. dictA = {
  5.    "Name": "Tom",
  6.    "Age": 21,
  7.    "Gender": "Male"
  8. }
  9. processDict(dictA)

Explanation:

Firstly create a function and name it as processDict that takes one input dictionary, dict (Line 1).

Create a for loop to iterate through each of the dictionary key, x, and use that key to look up the corresponding value and print it out (Line 2-3).

We test the function using a sample dictionary (Line 5-11). We shall get the output:

Tom

21

Male

You might be interested in
OSHA requires that employers pay for most required personal protective equipment (PPE), including: A. Hard hats B. Logging boots
Triss [41]
Im not 100% but Im pretty sure the answer is A. Hard hats

Hope this helps :)

6 0
3 years ago
What is the use of ROM chip in computer system?​
andrezito [222]

Answer:

ROM stands for read-only memory. It's used to store the start-up instructions for a computer, also known as the firmware. Most modern computers use flash-based ROM. It is part of the BIOS chip, which is located on the motherboard.

8 0
3 years ago
grow a sentence frame a small and simple sentence. then expand it. Expand this sentence -I am a gril​
AlekseyPX

Answer:

I am a young lady.

Explanation:

simply sentence or expand more:

  • I am a young lady in my teens. ​
  • I am a young woman in her twenties. ​
  • I am a twenty-year-old lady who is just starting off in life. ​
  • I am a twenty-year-old woman who is just getting her feet wet in the world. ​
6 0
3 years ago
Read 2 more answers
Given a link with a maximum transmission rate of 28.1 Mbps. Only two computers, X and Y, wish to transmit starting at time t = 0
Sophie [7]

Answer:

0.36

Explanation:

Each Packet Size = 1024 bytes (1000 bytes + 24 bytes)

X gets the transmission first.

Number of packets X has to send = 10,000,000 / 1,000 = 10,000 packets.

Number of packets Y has to send = 14,000 / 1,000 = 14 packets.

Time for one packet to transmit:

28,100,000 bytes in 1 sec

1,024 bytes in = (1/28,100,000) * 1,024 = 0.00003644 secs.

Time taken for X to send = 10,000 * 0.00003644 = 0.3644 secs

Time taken for Y to send = 14 * 0.00003644 = 0.00051016 secs

Time at which File x would finish transmitting = 0.3644 + 0.00051016 = 0.36

Hope this helps!

4 0
3 years ago
What happens when the computer is thrashing? quizzlet?
lutik1710 [3]
When computers need to use more memory than have RAM, they'll swap out pages of memory to their drive. When they need those memory pages, they'll swap out others and swap in the needed ones. If a computer needs enough additionall memory, it can get so busy swapping that it doesn't have any (or very little) time to do any useful work. That is called thrashing.

Unix calls swapping swapping. Windows calls it paging, probably because of the memory pages. Memory pages are 4096 (4KB) sections of memory.

Unix drives are usually partitioned with a swap partition, and swap files can be made in the filesystem. Windows just has pagefiles[s].
5 0
4 years ago
Other questions:
  • What is a main cause of a virus on a computer
    6·1 answer
  • Which feature of Microsoft power point make tiles fly in on the clock of a mouse
    8·1 answer
  • You knew that you had to take this quiz so you logged into Blackboard and went to the quizzes section. In this scenario your com
    11·1 answer
  • C programming Write a function named CalculateSphereVolume that takes one integer parameter intDiameter. The function should cal
    12·1 answer
  • You can view information for the individual people who will perform the tasks on theproject in the
    7·1 answer
  • A disk drive’s data ____________________ rate is a summary performance number combining the physical aspects of data access with
    10·2 answers
  • What will be the values of ans, x, and y after the following statements are executed? int ans = 35, x = 50, y =50; if ( x >=
    7·2 answers
  • Brainliest to Best Answer!
    6·1 answer
  • Write two eaxmple of operating system​
    14·2 answers
  • Help me with this question asap please :)
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!