





"""simple docstring"""




from math import factorial





def 						UpperCAmelCase__		(     _UpperCAmelCase = 20					):






  """simple docstring"""





  A_  :       Optional[Any]										=  2 * n  # middle entry of odd rows starting at row 3 is the solution for n = 1,
  # 2, 3,...
  A_  :       Any										=  n // 2

  return int(factorial(__UpperCamelCase					) / (factorial(__UpperCamelCase					) * factorial(n - k					))					)


if __name__ == "__main__":
   import sys

   if len(sys.argv) == 1:
      print(solution(20))
   else:
      try:
         lowerCamelCase_     :						List[str]						=					int(sys.argv[1])
         print(solution(n))
      except ValueError:
         print('Invalid entry - please enter a number.')
from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
   __lowerCamelCase			: str							   =		input('''Enter image url: ''').strip()
   print(F"""Downloading image from {url} ...""")
   __lowerCamelCase			: Any							   =		BeautifulSoup(requests.get(url).content, '''html.parser''')
   # The image URL is in the content field of the first meta tag with property og:image
   __lowerCamelCase			: List[Any]							   =		soup.find('''meta''', {'''property''': '''og:image'''})['''content''']
   __lowerCamelCase			: Tuple							   =		requests.get(image_url).content
   __lowerCamelCase			: Union[str, Any]							   =		F"""{datetime.now():%Y-%m-%d_%H:%M:%S}.jpg"""
   with open(file_name, '''wb''') as fp:
      fp.write(image_data)
   print(F"""Done. Image saved to disk as {file_name}.""")
