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 good design for a portable device to mix paint minimizing the shaking forces and vibrations while still effectively mixing the paint. Is:
The best design is one with centripetal movement. Instead of vertical or horizontal movement. With a container and system of holding structures made of materials that could absorb the vibration effectively.
Explanation:
First of all centripetal movement would be friendlier to our objective as it would not shake the can or the machine itself with disruptive vibrations. Also, we would have to use materials with a good grade of force absorption to eradicate the transmission of the movement to the rest of the structure. Allowing the reduction of the shaking forces while maintaining it effective in the process of mixing.
Answer:
answer below:
Explanation:
Before the Industrial Revolution, transportation relied on animals (like horses pulling a cart) and boats. Travel was slow and difficult. It could take months to travel across the United States in the early 1800s before industrial revolution
The Industrial Revolution completely changed the way people traveled and how goods were transported.
the problem of traveling upstream was solved during the industrial revolution by the steam engine. in order to make better use of water transportation, canals were build to connect rivers, lakes and oceans. the invention of the railroad and the steam powered locomotive opened up a whole new world in transportation. even with steamboats and railroads, people still needed a better wat to travel between rivers and train stations. a new process called the "macadam " process was used to create smooth gravel roads
I hope this helps a bit.
Here are 8 construction site safety tips:
Use caution when climbing on and off equipment.
Stay away from operating machinery.
Use caution around fall hazards.
Use the proper ladder height.
Keep an updated first aid kit.
Never use damaged equipment.
Never unplug a tool by the cord.
Be aware of surroundings at all times.