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:
A civil engineer.
Explanation:
Civil engineering is the science that deals with the design, creation and maintenance of constructions for civil use on the earth's surface. Thus, this specialty seeks to adapt soils to the needs of life in society, creating buildings, bridges, and all other constructions adapted to civil life, while taking care of the correct use of soils and the correct distribution of spaces and resources. to be used for such constructions.
Answer:
Explanation:
Thermostatic expansion valve is mainly a throttling device commonly used in air conditioning systems and refrigerators.
It is an automatic valve that maintains proper flow of refrigerant in the evaporator according to the load inside the evaporator. When the load in the evaporator is higher the valve opens and allows the increase in flow of refrigerant and when the load reduces the valve closes a bit and reduces the flow of refrigerant. This process leads to higher efficiency of compressor as well as the whole refrigeration system. Thus TEV works to reduce the pressure of refrigerant from higher condenser pressure to the lower evaporator pressure. It also keeps the evaporator active.
Answer:
<u><em>note:</em></u>
<u><em>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</em></u>