Answer:
# Python Program to Print
# all subsets of given size of a set
import itertools
def findsubsets(s, n):
return list(itertools.combinations(s, n))
# Driver Code
s = {1, 2, 3}
n = 2
print(findsubsets(s, n))
-----------------------------------------------
# Python Program to Print
# all subsets of given size of a set
import itertools
# def findsubsets(s, n):
def findsubsets(s, n):
return [set(i) for i in itertools.combinations(s, n)]
# Driver Code
s = {1, 2, 3, 4}
n = 3
print(findsubsets(s, n))
-------------------------------------------------------------
# Python Program to Print
# all subsets of given size of a set
import itertools
from itertools import combinations, chain
def findsubsets(s, n):
return list(map(set, itertools.combinations(s, n)))
# Driver Code
s = {1, 2, 3}
n = 2
print(findsubsets(s, n))
Answer:
Question 1 A 1020 Cold-Drawn steel shaft is to transmit 20 hp while rotating at 1750 rpm. Calculate the transmitted torque in lbs. in. Ignore the effect of friction. Answer with three decimal points. 60.024 Question 2 Based on the maximum-shear-stress theory, determine the minimum diameter in inches for the shaft in Q1 to provide a safety factor of 3. Assume Sy = 57 Kpsi. Answer with three decimal points. 0.728 Question 3 If the shaft in Q2 was made of ASTM 30 cast iron, what would be the factor of safety? Assume Sut = 31 Kpsi, Suc = 109 Kpsi 0 2.1 O 2.0 O 2.5 0 2.4 2.3 O 2.2
Explanation:
hope it helps
option 2 is your answer... thanks .. hope it helps
The answer is memory i believe