


"""simple docstring"""




import socket

def        lowercase							(		) ->      int:
		__a           =			socket.socket(socket.AF_INET    ,					socket.SOCK_STREAM			)
		__a           =			socket.gethostname()
		__a           =			12312

		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:
						__a           =			sock.recv(1024			)
						if not data:
								break
						out_file.write(lowerCAmelCase__			)

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


if __name__ == "__main__":
				main()










"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     str			) ->      list:
		if n_term == "":
				return []
		__a           =			[]
		for temp in range(int(lowerCAmelCase__			)			):
				series.append(f'''1/{temp + 1}''' if series else '''1'''			)
		return series


if __name__ == "__main__":
				lowercase_			     =  input("Enter the last number (nth term) of the Harmonic Series")
				print("Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n")
				print(harmonic_series(nth_term))






