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:
Efficient when the marginal benefits of project = marginal costs of project.
Explanation:
Majority Decision Rule:
Majority decision rule is based on the notion of equality. An alternative is selected which has majority of votes. The simple majority decision rule may generate efficient results if the marginal benefits of a project are equal or greater than the marginal costs of the project.
Answer:
what
Explanation:
is this an exam or an test or what is it
Answer: freemasonry is Being a Mason is about a father helping his son make better decisions; a business leader striving to bring morality to the workplace; a thoughtful man learning to work through tough issues in his life.
Explanation:
Answer:
volume of biological sludge = 28.566 m³ per day
Explanation:
given data
mass of solid = 7240 kg/day
initial moisture content = 78%
solution
here percentage of solid will be
% of solid = 100 - initial moisture content
% of solid = 100 - 78 = 22 %
so that
mass of sludge produced =
kg per day
put her value
mass of sludge produced =
kg
mass of sludge produced = 32909.09 kg
so
specific gravity of sludge = 
and as we know that
= 1.152
so that
density of sludge = S sludge × density of water
density of sludge = 1.152 × 1000
density of sludge = 1152 kg/m³
so that
volume of biological sludge =
volume of biological sludge =
volume of biological sludge = 28.566 m³ per day