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:
The heater load =35 KJ/kg
Explanation:
Given that
At initial condition
Temperature= 15°C
RH=80%
At final condition
Temperature= 50°C
We know that in sensible heating process humidity ratio remain constant.
Now from chart
At temperature= 15°C and RH=80%

At temperature= 50°C


The heater load = 73 - 38 KJ/kg
The heater load =35 KJ/kg
Your allowed to switch lanes as long as the road is clear and you use signals.
Answer:
(a) E = 0 N/C
(b) E = 0 N/C
(c) E = 7.78 x10^5 N/C
Explanation:
We are given a hollow sphere with following parameters:
Q = total charge on its surface = 23.6 μC = 23.6 x 10^-6 C
R = radius of sphere = 26.1 cm = 0.261 m
Permittivity of free space = ε0 = 8.85419 X 10−12 C²/Nm²
The formula for the electric field intensity is:
E = (1/4πεo)(Q/r²)
where, r = the distance from center of sphere where the intensity is to be found.
(a)
At the center of the sphere r = 0. Also, there is no charge inside the sphere to produce an electric field. Thus the electric field at center is zero.
<u>E = 0 N/C</u>
(b)
Since, the distance R/2 from center lies inside the sphere. Therefore, the intensity at that point will be zero, due to absence of charge inside the sphere (q = 0 C).
<u>E = 0 N/C</u>
(c)
Since, the distance of 52.2 cm is outside the circle. So, now we use the formula to calculate the Electric Field:
E = (1/4πεo)[(23.6 x 10^-6 C)/(0.522m)²]
<u>E = 7.78 x10^5 N/C</u>