


'''simple docstring'''







def 			lowercase				(_A   ,						_A					):







       """simple docstring"""







       _lowerCAmelCase    :							Optional[int]   			=       (boundary[1] - boundary[0]) / steps
       _lowerCAmelCase    :							Any   			=       boundary[0]
       _lowerCAmelCase    :							List[str]   			=       boundary[1]
       _lowerCAmelCase    :							Tuple   			=       make_points(_A   ,						_A   ,						_A					)
       _lowerCAmelCase    :							Tuple   			=       0.0
       y += (h / 2.0) * f(_A					)
       for i in x_i:
              # print(i)
              y += h * f(_A					)
       y += (h / 2.0) * f(_A					)
       return y






def 			lowercase				(_A   ,						_A   ,						_A					):







       """simple docstring"""







       _lowerCAmelCase    :							Tuple   			=       a + h
       while x < (b - h):
              yield x
              _lowerCAmelCase    :							Any   			=       x + h






def 			lowercase				(_A					):  # enter your function here







       """simple docstring"""







       _lowerCAmelCase    :							int   			=       (x - 0) * (x - 0)
       return y






def 			lowercase				():







       """simple docstring"""







       _lowerCAmelCase    :							Optional[Any]   			=       0.0  # Lower bound of integration
       _lowerCAmelCase    :							Dict   			=       1.0  # Upper bound of integration
       _lowerCAmelCase    :							Optional[Any]   			=       10.0  # define number of steps or resolution
       _lowerCAmelCase    :							Optional[int]   			=       [a, b]  # define boundary of integration
       _lowerCAmelCase    :							List[Any]   			=       method_a(_A   ,						_A					)
       print(f'y = {y}'					)


if __name__ == "__main__":
       main()





'''simple docstring'''







import socket






def 			lowercase				():







       """simple docstring"""







       _lowerCAmelCase    :							Tuple   			=       socket.socket(socket.AF_INET   ,						socket.SOCK_STREAM					)
       _lowerCAmelCase    :							Optional[int]   			=       socket.gethostname()
       _lowerCAmelCase    :							Any   			=       1_2_3_1_2

       sock.connect((host, port)					)
       sock.send(B'Hello server!'					)

       with open('Received_file'   ,						'wb'					) as out_file:
              print('File opened'					)
              print('Receiving data...'					)
              while True:
                     _lowerCAmelCase    :							Union[str, Any]   			=       sock.recv(1_0_2_4					)
                     if not data:
                            break
                     out_file.write(_A					)

       print('Successfully received the file'					)
       sock.close()
       print('Connection closed'					)


if __name__ == "__main__":
       main()

