



import math
def 	snake_case__       (					__lowercase       )		->		bool:







						"""simple docstring"""

						return math.sqrt(__lowercase       ) * math.sqrt(__lowercase       ) == num
def 	snake_case__       (					__lowercase       )		->		bool:







						"""simple docstring"""

						A__	:							Tuple						    = 0
						A__	:							int						    = n
						while left <= right:
												A__	:							Optional[Any]						    = (left + right) // 2
												if mid**2 == n:
																		return True
												elif mid**2 > n:
																		A__	:							Optional[Any]						    = mid - 1
												else:
																		A__	:							Optional[Any]						    = mid + 1
						return False


if __name__ == "__main__":
		import doctest

		doctest.testmod()







import requests

snake_case    :						int  =						''  # <-- Put your OpenWeatherMap appid here!
snake_case    :						int  =						'https://api.openweathermap.org/data/2.5/'
def 	snake_case__       (					__lowercase = "Chicago"							,     __lowercase = APPID       )		->		dict:







						"""simple docstring"""

						return requests.get(URL_BASE + "weather"							,     params=locals()       ).json()
def 	snake_case__       (					__lowercase = "Kolkata, India"							,     __lowercase = APPID       )		->		dict:







						"""simple docstring"""

						return requests.get(URL_BASE + "forecast"							,     params=locals()       ).json()
def 	snake_case__       (					__lowercase = 55.68							,     __lowercase = 12.57							,     __lowercase = APPID       )		->		dict:







						"""simple docstring"""

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


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

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