Answer: it would overload
Explanation:
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:
Opened Push-button Switch (i.e. a PTM Switch)
Explanation:
Tha's just another symbol for a switch, but this one specifies that the switch is a push-button type of switch.
Since it's not touching and completing the line, the state of the switch is initially open.
Answer:
b) The null hypothesis should be rejected.
Explanation:
The null hypothesis is that the mean shear strength of spot welds is at least
3.1 MPa
H0: u ≥3.1 MPa against the claim Ha: u< 3.1 MPa
The alternate hypothesis is that the mean shear strength of spot welds is less than 3.1 MPa.
This is one tailed test
The critical region Z(0.05) < ± 1.645
The Sample mean= x`= 3.07
The number of welds= n= 15
Standard Deviation= s= 0.069
Applying z test
z= x`-u/s/√n
z= 3.07-3.1/0.069/√15
z= -0.03/0.0178
z= -1.68
As the calculated z= -1.68 falls in the critical region Z(0.05) < ± 1.645 the null hypothesis is rejected and the alternate hypothesis is accepted that the mean shear strength of spot welds is less than 3.1 MPa
Crystalline silicon
hope this helps!! <3