code: def vector_magnitude(vector_in):
      
      sq_sum = 0.0
      for vin in vector_in:
          sq_sum += vin**2
      return math.sqrt(sq_sum)
docs: Computes the magnitude of the input vector.
  
      :param vector_in: input vector
      :type vector_in: list, tuple
      :return: magnitude of the vector
      :rtype: float