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:
We would need background context,
Explanation:
Then I would be happy to help!
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))
Answer:
Clouds
Explanation:
It is created by trapped dust and water.
Answer:
Opened Push-button Switch (i.e. a PTM Switch)
Explanation:
Tha's just another symbol for a switch, but this one specifies that the switch is a push-button type of switch.
Since it's not touching and completing the line, the state of the switch is initially open.