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
netineya [11]
3 years ago
5

Write a function named is_sub_dict that accepts two dictionaries from strings to strings as its parameters and returns True if e

very key in the first dictionary is also contained in the second dictionary and maps to the same value in the second dictionary. For example, given the dictionaries below, map1 is a sub-dict of map2, so the call of is_sub_dict(map1, map2) would return True. The order of the parameters does matter, so the call of is_sub_dict(map2, map1) would return False.
Computers and Technology
1 answer:
denis23 [38]3 years ago
6 0

def is_sub_dict(dict1, dict2):

   one = dict1.keys()

   two = dict2.keys()

   for x in one:

       if x in two:

           if dict1[x] == dict2[x]:

               pass

           else:

               return False

       else:

           return False

   return True

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

You might be interested in
Who plays Counter blox or counter strike
abruzzese [7]

Answer:

me

Explanation:

csgo

8 0
3 years ago
Read 2 more answers
Most operating system is perform these tasks
PIT_PIT [208]

Answer

program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer. The application programs make use of the operating system by making requests for services through a defined application program interface (API). In addition, users can interact directly with the operating system through a user interface such as a command line or a graphical user interface

6 0
3 years ago
What is the output for the following code?<br><br> print (5*4+5)
Damm [24]

Answer:

It will just print 5*4+5 .

But you still need to add " ".

8 0
3 years ago
Guidelines on how to write a report on how technology has affected office duties
UNO [17]

Answer:

weweweweweewewwewweewewweeew

Explanation:

weweweweewweweweewweewweewewew

5 0
3 years ago
1.
slamgirl [31]
1. I believe it this, they way the question is phrased it seems like a personal opinion. But if we're being logical about this, no one likes background noise. So,yes, it's important. 
2. Yes, when you record something you don't want additional sound that has nothing to do with what you're recording. 
3.Yes, your main task is to be focused on what you're doing on the computer. You don't want to be distracted by unnecessary distractions. 
8 0
3 years ago
Other questions:
  • James wishes to access a certain software service via different computing systems over the Internet. What technology provides so
    13·2 answers
  • Effective resource management: a. Locks out unauthorized access and can work to prevent changes to resources by internal users n
    8·1 answer
  • Which of the following might indicate a source on the internet is NOT reliable?
    6·1 answer
  • URGENT!! Which graphic design tools help you draw circles and rectangles?
    12·2 answers
  • Cartoon Disney question: Snow White asks the dwarfs a question. 2 of them are lying and 3 can only say the truth. The continuati
    10·1 answer
  • Which network component allows computers to communicate on a network without being connected directly to each other?
    9·1 answer
  • 1. What is an advantage of the PCIe bus over the PCI bus?
    9·1 answer
  • Emotions can have Impact on your driving?
    10·1 answer
  • Different between input and output device​
    5·1 answer
  • When using the Photo Album dialog box, a picture
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!