

from collections import namedtuple

import requests
from lxml import html  # type: ignore

_UpperCAmelCase		:   int										=       namedtuple("""covid_data""", """cases deaths recovered""")





def 					__lowerCamelCase	( UpperCamelCase__ = "https://www.worldometers.info/coronavirus/"      ):







							'''simple docstring'''






							snake_case_							=    '//div[@class = "maincounter-number"]/span/text()'
							return covid_data(*html.fromstring(requests.get(UpperCamelCase__      ).content      ).xpath(UpperCamelCase__      )      )


_UpperCAmelCase		:   Optional[int]										=       """Total COVID-19 cases in the world: {}
Total deaths due to COVID-19 in the world: {}
Total COVID-19 patients recovered in the world: {}"""


print(fmt.format(*covid_stats()))







from PIL import Image





def 					__lowerCamelCase	( UpperCamelCase__   ,							UpperCamelCase__      ):







							'''simple docstring'''






							snake_case_							=    (259 * (level + 255)) / (255 * (259 - level))

							def contrast(UpperCamelCase__      ) -> int:
														return int(128 + factor * (c - 128)      )

							return img.point(UpperCamelCase__      )


if __name__ == "__main__":
					# Load image
					with Image.open("""image_data/lena.jpg""") as img:
										# Change contrast to 170
										_UpperCAmelCase		:   Tuple										=       change_contrast(img, 170)
										cont_img.save("""image_data/lena_high_contrast.png""", format="""png""")




