input: Write a function to create a 3-layer artificial neural network using Python and print the outcome. If the input to the network is provided, calculate the output; otherwise, use the predefined input. Return the output as a floating-point number.
  assert create_3_layer_nn([2, 3]) == 0.59 # The output should match the example provided
  assert create_3_layer_nn([]) == 0.0 # If no input is provided, the default computed value should be used
  assert create_3_layer_nn([1, 1]) == 0.26 # A different input should compute a different output value
  assert create_3_layer_nn([0, 0]) == 0.0 # Zero input should result in zero output
output: def create_3_layer_nn(input_data=None):
      if input_data is None or len(input_data) == 0:
          input_data = [0, 0]
      
      weights1 = [0.5, 0.5]
      weights2 = [0.5, 0.5]
      weights3 = [0.5, 0.5]
      
      layer1 = sum([input_data[i] * weights1[i] for i in range(len(input_data))])
      layer2 = sum([layer1 * weights2[i] for i in range(len(weights2))])
      output = sum([layer2 * weights3[i] for i in range(len(weights3))])
      
      return float(output)