You need to explain it more simple as everyone is clueless
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:
Get the app socratic I saw the answer to your question on the app but I ran out of screen time to show you
The Pareto principle is that most things in our life are not commonly distributed.
<u>Explanation:</u>
Pareto chart shows that most of the things which we have in our life and the resources in our life are not equally distributed. The ratio is not always 50:50 according to this principle.
The most important use of a Pareto diagram is to show the most important factor among the set of factors that have been shown. Along with that it also shows the sources which lead to the common defects in the system and tries to solve those defects which occur most often.
Answer:
0.245 m^3/s
Explanation:
Flow rate through pipe a is 0.4 m3/s Parallel pipes have a diameter D = 30 cm => r = 15 cm = 0.15 m Length of Pipe a = 1000m Length of Pipe b = 2650m Temperature = 15 degrees Va = V / A = (0.4m3/s) / (3.14 (0.15m)^2) = 5.66 m/s h = (f(LV^2)) / D2g (fa(LaVa^2)) / Da2g = (fb(LbVb^2)) / Da2g and Da = Db; fa = fb LaVa^2 = LbVb^2 => La/Lb = Vb^2/Va^2 Vd^2 = Va^2(La/Lb) => Vb = Va(La/Lb)^(1/2) Vb = 5.66 (1000/2650)^(1/2) => 5.66 x 0.6143 = 3.4769 m/s Vb = 3.4769 m/s V = AVb = 3.14(0.15)^2 x 3.4769 m/s = 0.245 m^3/s