dining table seating arrangement questions python
# Python3 implementation of the approach
# Function to return the total count of ways
def Total_Ways(n) :
# Find (n - 1) factorial
fac = 1;
for i in range(2, n) :
fac = fac * i;
# Return (n - 1)! * 2!
return (fac * 2);
# Driver code
if __name__ == "__main__" :
n = 5;
print(Total_Ways(n));
# This code is contributed by AnkitRai01