4 men and 3 women are lined up in a row . what is the number of cases where they stand with each other in turn ? ( the number of cases in which men ( or women ) do not stand next to each other )
import math
n0 = 4.0
n1 = 3.0
t0 = math.factorial(min(15, int(n0)))
t1 = math.factorial(min(15, int(n1)))
answer = t0 * t1
print(answer)