





'''simple docstring'''


import requests
from bsa import BeautifulSoup
def 							UpperCAmelCase_  (						__lowerCamelCase : str = "https://www.worldometers.info/coronavirus"			):
   lowercase_      :Union[str, Any]         =			BeautifulSoup(requests.get(__lowerCamelCase			).text     ,"html.parser"			)
   lowercase_      :Union[str, Any]         =			soup.findAll("h1"			)
   lowercase_      :int         =			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(__lowerCamelCase     ,__lowerCamelCase			)}


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 							UpperCAmelCase_  (						__lowerCamelCase : int | float | str			):
   try:
      lowercase_      :Optional[int]         =			float(__lowerCamelCase			)
   except ValueError:
      raise ValueError("Please enter a valid number"			)
   lowercase_      :Dict         =			decimal - int(__lowerCamelCase			)
   if fractional_part == 0:
      return int(__lowerCamelCase			), 1
   else:
      lowercase_      :Tuple         =			len(str(__lowerCamelCase			).split("."			)[1]			)
      lowercase_      :Optional[Any]         =			int(decimal * (10**number_of_frac_digits)			)
      lowercase_      :Dict         =			10**number_of_frac_digits
      lowercase_      ,							lowercase_      :Optional[int]         =			denominator, numerator
      while True:
         lowercase_      :Any         =			dividend % divisor
         if remainder == 0:
            break
         lowercase_      ,							lowercase_      :Optional[int]         =			divisor, remainder
      lowercase_      ,							lowercase_      :Optional[int]         =			numerator / divisor, denominator / divisor
      return int(__lowerCamelCase			), int(__lowerCamelCase			)


if __name__ == "__main__":
 print(F'''{decimal_to_fraction(2) = }''')
 print(F'''{decimal_to_fraction(89.0) = }''')
 print(F'''{decimal_to_fraction('67') = }''')
 print(F'''{decimal_to_fraction('45.0') = }''')
 print(F'''{decimal_to_fraction(1.5) = }''')
 print(F'''{decimal_to_fraction('6.25') = }''')
 print(F'''{decimal_to_fraction('78td') = }''')


