Answer:
Complete question is:
write the following decorators and apply them to a single function (applying multiple decorators to a single function):
1. The first decorator is called strong and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <strong> and </strong> to the argument of the decorator. The return value of the wrapper should look like: return “<strong>” + func() + “</strong>”
2. The decorator will return the wrapper per usual.
3. The second decorator is called emphasis and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <em> and </em> to the argument of the decorator similar to step 1. The return value of the wrapper should look like: return “<em>” + func() + “</em>.
4. Use the greetings() function in problem 1 as the decorated function that simply prints “Hello”.
5. Apply both decorators (by @ operator to greetings()).
6. Invoke the greetings() function and capture the result.
Code :
def strong_decorator(func):
def func_wrapper(name):
return "<strong>{0}</strong>".format(func(name))
return func_wrapper
def em_decorator(func):
def func_wrapper(name):
return "<em>{0}</em>".format(func(name))
return func_wrapper
@strong_decorator
@em_decorator
def Greetings(name):
return "{0}".format(name)
print(Greetings("Hello"))
Explanation:
Answer: 1766.667 Ω = 1.767kΩ
Explanation:
V=iR
where V is voltage in Volts (V), i is current in Amps (A), and R is resistance in Ohms(Ω).
3mA = 0.003 A
Rearranging the equation, we get
R=V/i
Now we are solving for resistance. Plug in 0.003 A and 5.3 V.
R = 5.3 / 0.003
= 1766.6667 Ω
= 1.7666667 kΩ
The 6s are repeating so round off to whichever value you need for exactness.
Answer:

Explanation:
The position of each point are the following:

Since the three objects report charges with same sign, then, net force has a repulsive nature. The net force experimented by point charge A is:





Answer:
The heat input from the combustion phase is 2000 watts.
Explanation:
The energy efficiency of the heat engine (
), no unit, is defined by this formula:
(1)
Where:
- Heat input, in watts.
- Power output, in watts.
If we know that
and
, then the heat input from the combustion phase is:




The heat input from the combustion phase is 2000 watts.
Answer:
In refrigeration cycle heat transfer from inside refrigeration
In heat pump cycle heat transfer from environment
Explanation:
heat cycle is mechanical process use for cool the temperature but
In refrigeration heat transfer from inside of refrigeration that decrease temperature of refrigerator and in heat pump it decrease temperature negligible as compare to refrigerator