"""simple docstring"""






from __future__ import annotations



def 						a_		(      lowerCamelCase      ,    lowerCamelCase      ,    lowerCamelCase ):
				if (voltage, current, resistance).count(0 ) != 1:
								raise ValueError('One and only one argument must be 0' )
				if resistance < 0:
								raise ValueError('Resistance cannot be negative' )
				if voltage == 0:
								return {"voltage": float(current * resistance )}
				elif current == 0:
								return {"current": voltage / resistance}
				elif resistance == 0:
								return {"resistance": voltage / current}
				else:
								raise ValueError('Exactly one argument must be 0' )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




"""simple docstring"""






import socket



def 						a_		(      ):
				UpperCAmelCase__    =							socket.socket(socket.AF_INET      ,    socket.SOCK_STREAM )
				UpperCAmelCase__    =							socket.gethostname()
				UpperCAmelCase__    =							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:
												UpperCAmelCase__    =							sock.recv(1_0_2_4 )
												if not data:
																break
												out_file.write(lowerCamelCase )

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


if __name__ == "__main__":
						main()



