"""simple docstring"""






import requests
from bsa import BeautifulSoup



def 						a_		(      lowerCamelCase = "AAPL" ):
				UpperCAmelCase__    =							f'''https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'''
				UpperCAmelCase__    =							BeautifulSoup(requests.get(lowerCamelCase ).text      ,    'html.parser' )
				UpperCAmelCase__    =							'My(6px) Pos(r) smartphone_Mt(6px)'
				return soup.find('div'      ,    class_=class_ ).find('span' ).text


if __name__ == "__main__":
						for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
												print(F"""Current {symbol:<4} stock price is {stock_price(symbol):>8}""")




"""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()



