


"""simple docstring"""





import requests
from bsa import BeautifulSoup


def      _snake_case						(						_snake_case				:			str = "https://www.worldometers.info/coronavirus"			):
      lowerCAmelCase					:	str       =   BeautifulSoup(requests.get(_snake_case			).text ,   '''html.parser'''			)
      lowerCAmelCase					:	Any       =   soup.findAll('''h1'''			)
      lowerCAmelCase					:	Optional[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""")






"""simple docstring"""





def      _snake_case						(						_snake_case				:			float ,   _snake_case				:			list[float]			):
      if discount_rate < 0:
            raise ValueError('''Discount rate cannot be negative'''			)
      if not cash_flows:
            raise ValueError('''Cash flows list cannot be empty'''			)
      lowerCAmelCase					:	List[str]       =   sum(
          cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_snake_case			)			)
      return round(_snake_case ,   ndigits=2			)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


