





'''simple docstring'''




import requests

lowercase__   :				Tuple      =   ''''''  # <-- Put your OpenWeatherMap appid here!
lowercase__   :				int      =   '''https://api.openweathermap.org/data/2.5/'''






def 	_lowerCAmelCase      (  __snake_case  :			str = "Chicago"			,							__snake_case  :			str = APPID      )					->					dict:
     return requests.get(URL_BASE + 'weather'			,							params=locals()      ).json()






def 	_lowerCAmelCase      (  __snake_case  :			str = "Kolkata, India"			,							__snake_case  :			str = APPID      )					->					dict:
     return requests.get(URL_BASE + 'forecast'			,							params=locals()      ).json()






def 	_lowerCAmelCase      (  __snake_case  :			float = 55.68			,							__snake_case  :			float = 12.57			,							__snake_case  :			str = APPID      )					->					dict:
     return requests.get(URL_BASE + 'onecall'			,							params=locals()      ).json()


if __name__ == "__main__":
  from pprint import pprint

  while True:
    lowercase__   :				str      =   input('''Enter a location:''').strip()
    if location:
      pprint(current_weather(location))
    else:
      break






'''simple docstring'''




import math






def 	_lowerCAmelCase      (  __snake_case  :			int      )					->					int:

     if not isinstance(__snake_case			,							__snake_case      ):
          __A						:			List[Any]								=	f'Input value of [number={number}] must be an integer'
          raise TypeError(__snake_case      )

     if number < 1:
          __A						:			Union[str, Any]								=	f'Input value of [number={number}] must be > 0'
          raise ValueError(__snake_case      )
     elif number == 1:
          return 3
     elif number == 2:
          return 5
     else:
          __A						:			Optional[Any]								=	int(math.log(number // 3			,							2      )      ) + 2

          __A						:			Union[str, Any]								=	[3, 5]
          __A						:			List[Any]								=	2
          __A						:			Optional[Any]								=	3
          for block in range(1			,							__snake_case      ):
               for _ in range(__snake_case      ):
                    proth_list.append(2 ** (block + 1) + proth_list[proth_index - 1]      )
                    proth_index += 1
               increment *= 2

     return proth_list[number - 1]


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  for number in range(11):
    lowercase__   :				str      =   0
    try:
      lowercase__   :				List[str]      =   proth(number)
    except ValueError:
      print(f"""ValueError: there is no {number}th Proth number""")
      continue

    print(f"""The {number}th Proth number: {value}""")