



import requests
from bsa import BeautifulSoup







def    _snake_case (       __snake_case = "https://www.worldometers.info/coronavirus"    )     ->     dict:






      '''simple docstring'''







      UpperCAmelCase_  :	Any				      =		BeautifulSoup(requests.get(__snake_case    ).text					,  "html.parser"    )
      UpperCAmelCase_  :	List[str]				      =		soup.findAll("h1"    )
      UpperCAmelCase_  :	Union[str, Any]				      =		soup.findAll("div"					,  {"class": "maincounter-number"}    )
      keys += soup.findAll("span"					,  {"class": "panel-title"}    )
      values += soup.findAll("div"					,  {"class": "number-table-main"}    )
      return {key.text.strip(): value.text.strip() for key, value in zip(__snake_case					,  __snake_case    )}


if __name__ == "__main__":
   print('''\033[1m''' + '''COVID-19 Status of the World''' + '''\033[0m\n''')
   for key, value in world_covidaa_stats().items():
      print(F'''{key}\n{value}\n''')





import operator







def    _snake_case (       __snake_case					,  __snake_case = False					,  __snake_case = None    )     ->     list:






      '''simple docstring'''







      UpperCAmelCase_  :	Optional[int]				      =		operator.lt if reverse else operator.gt
      UpperCAmelCase_  :	int				      =		solution or []

      if not arr:
            return solution

      UpperCAmelCase_  :	Union[str, Any]				      =		[arr.pop(0    )]
      for i, item in enumerate(__snake_case    ):
            if _operator(__snake_case					,  sublist[-1]    ):
                  sublist.append(__snake_case    )
                  arr.pop(__snake_case    )

    #  merging sublist into solution list
      if not solution:
            solution.extend(__snake_case    )
      else:
            while sublist:
                  UpperCAmelCase_  :	Optional[int]				      =		sublist.pop(0    )
                  for i, xx in enumerate(__snake_case    ):
                        if not _operator(__snake_case					,  __snake_case    ):
                              solution.insert(__snake_case					,  __snake_case    )
                              break
                  else:
                        solution.append(__snake_case    )

      strand_sort(__snake_case					,  __snake_case					,  __snake_case    )
      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]
