n = 6 counter = 1 result = 1 while n - 1 != counter: result = result * counter counter = counter + 1 print(result)