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:
True
Suspension is the system of tires, tire air, springs, shock absorbers and linkages that connects a vehicle to its wheels and allows relative motion between the two.[1] Suspension systems must support both road holding/handling and ride quality
Moisture content is measured in terms of pounds of water per pound of air (lb water/lb air) or grains of water per pound of air (gr. of water/lb air).
Hope this helps❤
Answer:
k = 4.21 * 10⁻³(L/(mol.s))
Explanation:
We know that
k = Ae
------------------- euqation (1)
K= rate constant;
A = frequency factor = 4.36 10^11 M⁻¹s⁻¹;
E = activation energy = 93.1kJ/mol;
R= ideal gas constant = 8.314 J/mol.K;
T= temperature = 332 K;
Put values in equation 1.
k = 4.36*10¹¹(M⁻¹s⁻¹)e![^{[(-93.1*10^3)(J/mol)]/[(8.314)(J/mol.K)(332K)}](https://tex.z-dn.net/?f=%5E%7B%5B%28-93.1%2A10%5E3%29%28J%2Fmol%29%5D%2F%5B%288.314%29%28J%2Fmol.K%29%28332K%29%7D)
k = 4.2154 * 10⁻³(M⁻¹s⁻¹)
here M =mol/L
k = 4.21 * 10⁻³((mol/L)⁻¹s⁻¹)
or
k = 4.21 * 10⁻³((L/mol)s⁻¹)
or
k = 4.21 * 10⁻³(L/(mol.s))