\
Implement function find_key that takes a
dictionary with int:int pairs and a second parameter which is an
int that corresponds to one of the dictionary values, and returns
the key that corresponds to this value. If there are more than one
keys, it returns the smallest key. If there is no key that maps to
this value, the functions returns False. You may not use the
.values and .items methods. You may not create lists, tuples,
strings, sets, dictionaries. You maynot use functions min, max,
sorted.
Examples:
find_key({5:7, 6:3, 2:1, 3:4}, 4) -> 3
find_key({1:9, 7:4, 6:3, 2:1, 8:4}, 4) -> 7
find_key({9:5, 6:3, 2:1, 3:3}, 4) -> False
True
False
In python Please
In: Computer Science
answer
A researcher examines factors that affect thinking. In one study, she had three groups of participants work on seven problems that required creative thinking. One group prepared for the task by exercising; a second group watched a comedy video; the third group was a control group that simply began work on the problems. The scores below show the number correct for each participant.
|
Exercise |
Comedy |
Control |
|
5 |
4 |
4 |
|
4 |
7 |
2 |
|
1 |
2 |
1 |
|
2 |
5 |
1 |
|
3 |
3 |
3 |
|
0 |
4 |
2 |
|
2 |
1 |
0 |
Select the correct statistical test; perform the test, and any subsequent post-hoc tests; report the results according to the handbook guidelines; explain what the results mean.
In: Statistics and Probability
The positive-sequence line impedance as well as CT and VT ratios at B1 for the 33 kV system as shown in Table 1 and Table 2 below :
Table 1
| Line | Positive Sequence Impedance |
| 1-2 | 4+j30 |
| 2-3 | 4+j40 |
| 3-4 | 4+j50 |
Table 2
| Breaker | CT Ratio | VT Ratio |
| B1 | 100/5 A | 33000/5 V |
Zone 1 reaches 90% of the protected line while zone 2 extend beyond the protected line up to 50% of the adjacent line and Zone 3 covers the protected line up to 25%. Determine the settings Zr1, Zr2 and Zr3 for the B1 three-zone, directional impedance relays. Draw its MHO relay diagram and impedance relay diagram.
In: Electrical Engineering
Deadlock –Banker’s Algorithm
A system has three resource types (A, B, C) and four processes {P1, P2, P3, P4 }. The total units of system resources are: (8, 5, 4) units of A, B and C, respectively. The maximum demands for each process is P1(1,2,3), P2(3,2,1), P3(6,5,4) and P4(4,4,2). The current allocation is: P1(0,1,1), P2(2,2,0) and P3(3,0,1) and P4(1,0,1).
(a) Allocation table is given for the 3 processes with the following four columns: PROCESS, ALLOCATION, MAX and NEED. And fill this table with the current allocation state.
(b) Is this state a safe state? Explain your answer by identifying a successful future sequence of processes that makes the state safe, or by explaining which processes are part of the problem that makes the state unsafe?
PROCESS ALLOCATION MAX NEED
A B C A B C A B C
* P0 4 5 0 1 3 6 3 2 6 (*P0 is just an example)
P1 0 1 1 1 2 3
P2 2 2 0 3 2 1
P3 3 0 1 6 5 4
P4 1 0 1 4 4 2
In: Other
Solve each inequality and graph the solution. Thank you!
1. -3/8(x) - 20 +2x > 6
2. 2/3(x) + 14 - 3x > -7
3. 0.5x - 4 - 2x ≤ 2
4. 4x + 1 + 2x ≥ 5
In: Math
Find the fourier series of the following
a. ?(?) = 1 + ? ; −? ≤ ? < ?
b. ?(?) = { 1 0 ≤ ? < 2 −1 2 ≤ ? < 4
c. ?(?) = ? 2 + 1 ; −1 ≤ ? < 1
help guys struggling student here thankies
In: Advanced Math
Cl-1 + MnO4-1 ---> Mn+2 + Cl2
1. Balance the equation using the ion-electron (half-cell) method. Assume acidic solution.
2. Calculate Eocell.
3. Calculate E cell when Mn+2 and Cl-1 are each 1.0 M, MnO4-1 is 1.0 x 10-4 M, Cl2 is at 1 atm pressure.
4. Calculate the equilibrium constant, Keq for the reaction.
In: Chemistry
1.The growth of an animal species is described by F(t) = 350log(3t + 5), where t is measured in months. How many months will it take for the population to double from month zero? Round to the nearest hundredth.
Select one:
a. 8.34
b. 6.67
c. 10.26
d. 12.55
2.
Let A = {1, 2, 3, 4} and B = {a, b, c, d}. Determine which of the following are functions.
Select one or more:
a. f ⊂ A × B, where f={(1,a),(2,b),(3,c),(4,d)}
b. f ⊂ A × B, where f={(1,a),(2,b),(3,c),(3,d)}
c. f ⊂ A × B, where f={(1,a),(2,b),(3,c)}
d. f ⊂ A × B, where f={(1,a),(2,a),(3,a),(4,a)}
e. f ⊂ A × B, where f={(1,a),(1,b),(1,c),(1,d)}
In: Computer Science
I have asked this question 4 times and no one has done it right yet!!!!! PLEASE HELP ME
I need a Risk Management Plan for a made up supply chain company. This should be several pages including:
1 INTRODUCTION.. 1
1.1 Purpose Of The Risk Management Plan. 1
2 risk management Procedure.. 1
2.1 Process. 1
2.2 Risk Identification. 1
2.3 Risk Analysis. 1
2.3.1 Qualitative Risk Analysis. 1
2.3.2 Quantitative Risk Analysis. 1
2.4 Risk Response Planning. 1
2.5 Risk Monitoring, Controlling, And Reporting. 2
3 Roles and responsibilities. 2
4 Budgeting.. 2
5 Timing.. 2
6 Risk Breakdown structure/ categories. 2
7 stakeholder risk tolerancese.. 3
risk management plan approval.. 4
APPENDIX A: REFERENCES. 5
APPENDIX B: KEY TERMS. 6
In: Operations Management
Based on the findings for the delivery below, determine if a post hoc test is necessary. If necessary:
|
condition 1 |
condition 2 |
condition 3 |
|
0 |
6 |
6 |
|
4 |
8 |
5 |
|
0 |
5 |
9 |
|
1 |
4 |
4 |
|
0 |
2 |
6 |
In: Statistics and Probability