input: Write a python function to generate a multiplication table for a given number and return it as a list of strings.
  assert multiplication_table(2)==['1 x 2 = 2', '2 x 2 = 4', '3 x 2 = 6', '4 x 2 = 8', '5 x 2 = 10', '6 x 2 = 12', '7 x 2 = 14', '8 x 2 = 16', '9 x 2 = 18', '10 x 2 = 20']
  assert multiplication_table(5)==['1 x 5 = 5', '2 x 5 = 10', '3 x 5 = 15', '4 x 5 = 20', '5 x 5 = 25', '6 x 5 = 30', '7 x 5 = 35', '8 x 5 = 40', '9 x 5 = 45', '10 x 5 = 50']
  assert multiplication_table(10)==['1 x 10 = 10', '2 x 10 = 20', '3 x 10 = 30', '4 x 10 = 40', '5 x 10 = 50', '6 x 10 = 60', '7 x 10 = 70', '8 x 10 = 80', '9 x 10 = 90', '10 x 10 = 100']
output: def multiplication_table(n):
      return [f"{i} x {n} = {i * n}" for i in range(1, 11)]