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
solniwko [45]
3 years ago
7

Create a dictionary that maps a fruit name to its color. Both the keys and the values should be stored as strings. Include only

the following three entries in the dictionary: apple (red), orange (orange), and banana (yellow). Store the dictionary in a variable named fruit_dictionary.
Computers and Technology
1 answer:
UkoKoshka [18]3 years ago
6 0

Answer:

Written in Python:

fruit_dictionary = {}

fruit_dictionary = {'apple': 'red', 'orange': 'orange', 'banana': 'yellow'}

Explanation:

First (although, not necessary), we create an empty dictionary named fruit_dictionary on line 1

Next, we populate the dictionary using the following syntax:

{key-1:value-1, key-2:value-2,......,key-n:value-n}

In this case, the entry would be:

{'apple': 'red',

'orange': 'orange',

'banana': 'yellow'}

The items on the first column (i.e. apple, orange and banana) are the keys while the items on the second (i.e. red, orange and yellow) are the values of the dictionary

To print the items in the dictionary, you can add  the following line of code:

<em>print(fruit_dictionary.items()) </em>

You might be interested in
The natural functions of Earth seem all _____ in one way or another.
Sonja [21]
Would it be Similar ?
4 0
3 years ago
Write a program that accepts a time as an hour and minute. Add 15 minutes to the time
Anastaziya [24]

Answer:

The code is given below

hours = int(input("Enter time in hour: "))

minutes = int(input("Enter time in minute: "))

total time = (hours * 60) + (minutes + 15 )

total hours = int(total minutes  / 60)

minutes  = total hours/ 60

print("Hours: " + str(hours))

print("Minutes: " + str(minutes))

5 0
3 years ago
What field would you use to store a value from another table?
Levart [38]

Answer:

A. Lookup

Explanation:

You would use the Lookup field to store a value from another table.

7 0
3 years ago
Data in the form of digits is called
Flauer [41]
Numeric data because it consist of numbers
5 0
2 years ago
Which case would benefit from Explainable Artificial Intelligence (AI) principles?
Nadya [2.5K]

The case that will benefit from Explainable Artificial Intelligence (AI) principles is a doctor who depends on AI to make diagnosis.

Using Explainable Artificial Intelligence principles of supported evidence, understandable and accurate explanations, and knowledge limit as designed for AI, will save the doctor and all medical staff enormous amount of time.

Explainable Artificial Intelligence enables all medical staff to focus on correct medical interpretation and treatment instead of wasting time on repetitive medical tasks.

In comparison, the medical doctor will benefit more than a music streaming platform recommending a song, a navigation platform suggesting fastest routes, or a social media platform that identifies faces from a picture.

Thus, a medical doctor will find Explainable Artificial Intelligence principles useful to reduce some of the repetitive tasks that she undertakes, thereby focusing her attention on providing appropriate medical care to the patients.

Learn more about Explainable Artificial Intelligence here: brainly.com/question/22650312

5 0
3 years ago
Read 2 more answers
Other questions:
  • A website wants to gives out detailed information to viewers about its upcoming conference and also provides a feature for searc
    10·1 answer
  • What are the uses of a modem
    5·1 answer
  • Indexed sequential access, an index is more useful when the number of record is
    10·1 answer
  • Write a calculator program that keeps track of a subtotal like real calculators do. Start by asking the user for an initial numb
    12·1 answer
  • What steps might a company or organization need take in order to keep its digital data secure online?
    8·1 answer
  • What is a cloud in the world of computing
    7·1 answer
  • Match the ernerging technologies to their descriptions.
    14·1 answer
  • Write a loop that subtracts 1 from each element in lowerScores. If the element was already 0 or negative, assign 0 to the elemen
    14·1 answer
  • Which of the following is NOT an example of soft skill?
    10·2 answers
  • __________ are very simple devices that connect network components, sending a packet of data to all other connected devices.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!