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 difference of head in the level of reservoir is 0.23 m.
Explanation:
For pipe 1

For pipe 2

Q=2.8 l/s
![Q=2.8\times 10^{-3]](https://tex.z-dn.net/?f=Q%3D2.8%5Ctimes%2010%5E%7B-3%5D)
We know that Q=AV




head loss (h)

Now putting the all values

So h=0.23 m
So the difference of head in the level of reservoir is 0.23 m.
Answer:
Alice is correct.
The loop are dependent.
Explanation:
for(i = 1; i <= N; i = (i*2)+17 )
for(k = i+1; k <= i+N; k = k+1) // notice i in i+1 and i+N
printf("B")
This is a nested for-loop.
After the first for-loop opening, there is no block of statement to be executed rather a for-loop is called again. And the second for-loop uses the value of i from the first for-loop. The value of N is both called from outside the loop.
So, the second for-loop depend on the first for loop to get the value of i. For clarity purpose, code indentation or use of curly brace is advised.
Answer:
Ususushehehehhuuiiïbbb
Explanation:
Yyshehshehshshsheyysysueueue
Answer:
hope this helps
Explanation:
answers:
1. Chemical engineering is most difficult because it's a mix of physics, chemistry and math
2. Stoichiometry is so important because it shows how materials react, interact and play off each other
3. Yes I think consumers would notice if process control standards were not met. for example medicines, when people take Tylenol or cold pills, if the amount of time it took to kick it becomes longer, people will become aware that the product is not consistent and reliable.
4. i have no idea sorry :(
5. This is explaining how there are rules and regulations to make the workplace safe. it can be accomplished by following those rules and regulations