Sheeeeeesh bro same name ayoooo??
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:
V = 0.30787 m³/s
m = 2.6963 kg/s
v2 = 0.3705 m³/s
v2 = 6.017 m/s
Explanation:
given data
diameter = 28 cm
steadily =200 kPa
temperature = 20°C
velocity = 5 m/s
solution
we know mass flow rate is
m = ρ A v
floe rate V = Av
m = ρ V
flow rate = V =
V = Av = 
V = 
V = 0.30787 m³/s
and
mass flow rate of the refrigerant is
m = ρ A v
m = ρ V
m =
= 
m = 2.6963 kg/s
and
velocity and volume flow rate at exit
velocity = mass × v
v2 = 2.6963 × 0.13741 = 0.3705 m³/s
and
v2 = A2×v2
v2 = 
v2 = 
v2 = 6.017 m/s
Answer:
3270 N/m^2
Explanation:
we can calculate the pressure difference between the bottom and surface of the tank by applying the equation for the net vertical pressure
Py = - Ph ( g ± a )
for a downward movement
Py = - Ph ( g - a ) ------ ( 1 )
From the above data given will be
p = 1000 kg/m^3, h = 2/3 * 0.5 = 0.33 m , a =2g , g = 9.81
input values into equation 1 becomes
Py = -Ph ( g - 2g ) = Phg ------ ( 3 )
Py = 1000 * 0.33 * 9.81
= 3270 N/m^2
Answer:
Time taken = 136.32 minutes
Explanation:
The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.