


"""simple docstring"""







import requests

a__				:							Dict						=     ''''''  # <-- Put your OpenWeatherMap appid here!
a__				:							Union[str, Any]						=     '''https://api.openweathermap.org/data/2.5/'''




def    UpperCAmelCase__       (lowerCAmelCase_ = "Chicago"  ,						lowerCAmelCase_ = APPID   ):




					'''simple docstring'''


					return requests.get(URL_BASE + "weather"  ,						params=locals()   ).json()




def    UpperCAmelCase__       (lowerCAmelCase_ = "Kolkata, India"  ,						lowerCAmelCase_ = APPID   ):




					'''simple docstring'''


					return requests.get(URL_BASE + "forecast"  ,						params=locals()   ).json()




def    UpperCAmelCase__       (lowerCAmelCase_ = 55.68  ,						lowerCAmelCase_ = 12.57  ,						lowerCAmelCase_ = APPID   ):




					'''simple docstring'''


					return requests.get(URL_BASE + "onecall"  ,						params=locals()   ).json()


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

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




"""simple docstring"""







from __future__ import annotations




def    UpperCAmelCase__       (lowerCAmelCase_  ,						lowerCAmelCase_ = None  ,						lowerCAmelCase_ = None   ):




					'''simple docstring'''


					if start is None:
										__SCREAMING_SNAKE_CASE						   =				0

					if end is None:
										__SCREAMING_SNAKE_CASE						   =				len(lowerCAmelCase_   ) - 1

					if start >= end:
										return

					__SCREAMING_SNAKE_CASE						   =				(start + end) // 2

					slowsort(lowerCAmelCase_  ,						lowerCAmelCase_  ,						lowerCAmelCase_   )
					slowsort(lowerCAmelCase_  ,						mid + 1  ,						lowerCAmelCase_   )

					if sequence[end] < sequence[mid]:
										__SCREAMING_SNAKE_CASE   ,  __SCREAMING_SNAKE_CASE						   =				sequence[mid], sequence[end]

					slowsort(lowerCAmelCase_  ,						lowerCAmelCase_  ,						end - 1   )


if __name__ == "__main__":
		from doctest import testmod

		testmod()
