





'''simple docstring'''






import operator





def       lowercase_      (		lowercase__				,  lowercase__ = False				,  lowercase__ = None						)   ->list:
						_snake_case:   List[str]  					=		operator.lt if reverse else operator.gt
						_snake_case:   int  					=		solution or []

						if not arr:
												return solution

						_snake_case:   Optional[Any]  					=		[arr.pop(0						)]
						for i, item in enumerate(lowercase__						):
												if _operator(lowercase__				,  sublist[-1]						):
																		sublist.append(lowercase__						)
																		arr.pop(lowercase__						)

    #  merging sublist into solution list
						if not solution:
												solution.extend(lowercase__						)
						else:
												while sublist:
																		_snake_case:   Tuple  					=		sublist.pop(0						)
																		for i, xx in enumerate(lowercase__						):
																								if not _operator(lowercase__				,  lowercase__						):
																														solution.insert(lowercase__				,  lowercase__						)
																														break
																		else:
																								solution.append(lowercase__						)

						strand_sort(lowercase__				,  lowercase__				,  lowercase__						)
						return solution


if __name__ == "__main__":
		assert strand_sort([4, 3, 5, 1, 2]) == [1, 2, 3, 4, 5]
		assert strand_sort([4, 3, 5, 1, 2], reverse=True) == [5, 4, 3, 2, 1]












'''simple docstring'''






import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
		print('Googling.....')
		A   : Optional[int]             =			'https://www.google.com/search?q=' + ' '.join(sys.argv[1:])
		A   : Dict             =			requests.get(url, headers={'UserAgent': UserAgent().random})
		# res.raise_for_status()
		with open('project1a.html', 'wb') as out_file:  # only for knowing the class
				for data in res.iter_content(10_000):
						out_file.write(data)
		A   : List[Any]             =			BeautifulSoup(res.text, 'html.parser')
		A   : List[Any]             =			list(soup.select('.eZt8xd'))[:5]

		print(len(links))
		for link in links:
				if link.text == "Maps":
						webbrowser.open(link.get('href'))
				else:
						webbrowser.open(F'https://google.com{link.get("href")}')





