




"""simple docstring"""
from __future__ import annotations





def 						UpperCAmelCase				(			A__:    list[int]							,				A__:    int     )  ->     list[int]:
			__lowerCamelCase					:	int	       =				0
			__lowerCamelCase					:	Optional[int]	       =				len(A__     ) - 1

			while i < j:
						if nums[i] + nums[j] == target:
									return [i, j]
						elif nums[i] + nums[j] < target:
									__lowerCamelCase					:	Dict	       =				i + 1
						else:
									__lowerCamelCase					:	List[str]	       =				j - 1

			return []


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					print(F"""{two_pointer([2, 7, 11, 15], 9) = }""")









"""simple docstring"""
import requests

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





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





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





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


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

					while True:
										a_				:    List[Any]										=     input('''Enter a location:''').strip()
										if location:
															pprint(current_weather(location))
										else:
															break



