input: Write a python function to calculate the area of different shapes.
  assert calculate_area('triangle', 3, 4) == 6.0
  assert calculate_area('square', 5) == 25
  assert calculate_area('rectangle', 4, 6) == 24
  assert calculate_area('circle', 3) == 28.278
  assert calculate_area('hexagon', 3) == "Incorrect shape"
output: import math
  
  def calculate_area(shape, *dimensions):
      if shape == 'triangle':
          if len(dimensions) != 2:
              return "Incorrect parameters"
          base, height = dimensions
          return 0.5 * base * height
      elif shape == 'square':
          if len(dimensions) != 1:
              return "Incorrect parameters"
          side, = dimensions
          return side * side
      elif shape == 'rectangle':
          if len(dimensions) != 2:
              return "Incorrect parameters"
          length, width = dimensions
          return length * width
      elif shape == 'circle':
          if len(dimensions) != 1:
              return "Incorrect parameters"
          radius, = dimensions
          return round(math.pi * (radius ** 2), 3)
      else:
          return "Incorrect shape"