

'''simple docstring'''






from PIL import Image


def 		_A     (    A__     ,				A__      ):






 """simple docstring"""



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

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

 return img.point(A__      )


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





'''simple docstring'''



import requests
from bsa import BeautifulSoup






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   str = "https://www.worldometers.info/coronavirus"   ):
					__a			:       List[Any]					    =  BeautifulSoup(requests.get(_SCREAMING_SNAKE_CASE   ).text						,      'html.parser'   )
					__a			:       Union[str, Any]					    =  soup.findAll('h1'   )
					__a			:       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(_SCREAMING_SNAKE_CASE						,      _SCREAMING_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''')



