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:
I'm no engineer, but blue and purple are cool colors and white is every color so I'd go with orange
Answer:
Develop a written hazard communication program
Implement a hazard communication program
Maintain a written hazard communication program
Explanation:
To find - Which of the following answer options are your employer's responsibility? Select all that apply.
Develop a written hazard communication program
Implement a hazard communication program
Maintain a written hazard communication program
Solution -
The correct options are -
Develop a written hazard communication program
Implement a hazard communication program
Maintain a written hazard communication program
All are the Responsibilities of an employer
Reason -
The most important duty of the employer is to stay alert and implement a correctly and efficiently written communication program related to hazards of the substances in the workplace.
He also has to maintain the program so that employees do not get affected.
Answer:
Exact answer: a form of energy resulting from the existence of charged particles (such as electrons or protons), either statically as an accumulation of charge or dynamically as a current.
Explanation:
a converging nozzle has an exit area of 0.001 m2. Air enters the nozzle with negligible velocity at a pressure of 1 MPa and a temperature of 360 K. For isentropic flow of an ideal gas with k = 1.4 and the gas constant R = Ru/MW = 287 J/kg-K, determine the mass flow rate in kg/s and the exit Mach number for back pressures
100% (3 ratings)
A_2 = 0.001 m^2 P_1 = 1 MPa, T_1 = 360 k P_2 = 500 kpa p^gamma - 1/gamma proportional T (1000/500)^1.4 - 1/1.4 = (360/T_2) 2^4/14 = 360/T_2 T_2