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
katrin2010 [14]
3 years ago
15

Given a dictionary d and a list lst, remove all elements from the dictionary whose key is an element of lst. For example, given

the dictionary {1:2, 3:4, 5:6, 7:8} and the list [1, 7], the resulting dictionary would be {3:4, 5:6}. Assume every element of the list is a key in the dictionary.
Engineering
1 answer:
NikAS [45]3 years ago
6 0

Answer:

d = {1:2, 3:4, 5:6, 7:8}

list = [1, 7]

not_found = set()

for x in list:

  if x not in d.keys():

     not_found.add(x)

  else:

     del d[x]

print(d)

print(not_found)

You might be interested in
Getting the bottom of your feet burned when walking on hot sand is due to what form of energy transmission? group of answer choi
Scilla [17]

Getting the bottom of your feet burned when walking on hot sand is due to a form of energy transmission known as conduction.

<h3>The types of energy transmission.</h3>

In Science, there are three (3) main types of energy transmission and these include the following:

  • Convection
  • Radiation
  • Conduction

In this scenario, we can infer and logically conclude that burning the bottom of your feet when walking on hot sand is primarily due to a form of energy transmission known as conduction because it involves the transfer of thermal energy (heat) due to the movement of particles.

Read more on heat conduction here: brainly.com/question/12072129

#SPJ12

6 0
2 years ago
I will Brainlist<br> "Burning and Inch". Describe this measurement.
MAVERICK [17]

Answer:

what measurement

Explanation:

8 0
3 years ago
Read 2 more answers
three balls each have a mass m if a has a speed v just before a direct collision with B determine the speed of C after collision
ratelena [41]

Answer:

Vc2= V(l+e) ^2/4

Vg2= V(l-e^2)/4

Explanation:

Conservation momentum, when ball A strikes Ball B

Where,

M= Mass

V= Velocity

Ma(VA)1+ Mg(Vg)2= Ma(Va)2+ Ma(Vg)2

MV + 0= MVg2

Coefficient of restitution =

e= (Vg)2- (Va)2/(Va)1- (Vg)1

e= (Vg)2- (Va)2/ V-0

Solving equation 1 and 2 yield

(Va)2= V(l-e) /2

(Vg)2= V(l+e)/2

Conservative momentum when ball b strikes c

Mg(Vg)2+Mc(Vc)1 = Mg(Vg)3+Mc(Vc)2

=> M[V(l+e) /2] + 0 = M(Vg)3 + M(Vc) 2

Coefficient of Restitution,

e= (Vc)2 - (Vg)2/(Vg)2- (Vc)1

=> e= (Vc)2 - (Vg)2/V(l+e) /2

Solving equation 3 and 4,

Vc2= V(l+e) ^2/4

Vg2= V(l-e^2)/4

8 0
3 years ago
Read 2 more answers
A power of 100 kW (105 W) is delivered to the other side of a city by a pair of power lines, between which the voltage is 12,000
OLga [1]

Answer:

I = 8.3 Amp

potential drop = 83 V

Explanation:

Power = 100 KW

V = 12,000 V

R = 10 ohms

a)

Calculate current I in each wire:

P = I*V

I = P / V

I = 100 / 12 = 8.333 A

b)

Calculate potential drop in each wire:

V = I*R

V = (8.3) * (10)

V = 83 V

4 0
3 years ago
If you were driving the blue Prius in the situation pictured above, explain why the red Mustang should be giver right-of -way at
Scilla [17]
Because the red mustang is at the stop sign first. It’s a 4 way intersection
6 0
4 years ago
Other questions:
  • A 179 ‑turn circular coil of radius 3.95 cm and negligible resistance is immersed in a uniform magnetic field that is perpendicu
    11·1 answer
  • A gasoline engine has a piston/cylinder with 0.1 kg air at 4 MPa, 1527◦C after combustion, and this is expanded in a polytropic
    14·1 answer
  • The size of Carvins Cove water reservoir is 3.2 billion gallons. Approximately, 11 cfs of water is continuous withdrawn from thi
    11·1 answer
  • The amount of time an activity can be delayed and yet not delay the project is termed:_________
    14·1 answer
  • An analog baseband audio signal with a bandwidth of 4kHz is transmitted through a transmission channel with additive white noise
    14·1 answer
  • For a body moving with simple harmonic motion state the equations to represent: i) Velocity ii) Acceleration iii) Periodic Time
    11·1 answer
  • A program contains the following function definition: int cube(int number) { return number * number * number; } Write a stateme
    8·1 answer
  • What careers could you potential do if you
    5·1 answer
  • A student is building a circuit which material should she use for the wires and why?
    10·2 answers
  • Can you use isentropic efficiency for a non-adiabatic compressor?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!