
'''simple docstring'''



def A (__lowerCamelCase :list					,      __lowerCamelCase :int = 0						):
						_lowerCAmelCase    		=					length or len(__lowerCamelCase						)
						_lowerCAmelCase    		=					False
						for i in range(length - 1						):
												if list_data[i] > list_data[i + 1]:
																		_lowerCAmelCase		,       _lowerCAmelCase    		=					list_data[i + 1], list_data[i]
																		_lowerCAmelCase    		=					True

						return list_data if not swapped else bubble_sort(__lowerCamelCase					,      length - 1						)


if __name__ == "__main__":
						import doctest

						doctest.testmod()


'''simple docstring'''



import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
						print("""Googling.....""")
						_lowercase          =						"""https://www.google.com/search?q=""" + """ """.join(sys.argv[1:])
						_lowercase          =						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(10000):
																		out_file.write(data)
						_lowercase          =						BeautifulSoup(res.text, """html.parser""")
						_lowercase          =						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')}""")
