input: Write a function to calculate the factorial of the length of a given string.
  assert factorial("hello") == 120
  assert factorial("world") == 120
  assert factorial("Python") == 720
output: def factorial(s):
      from math import factorial
      return factorial(len(s))