


'''simple docstring'''



from string import ascii_uppercase

__lowercase	:						List[Any]       =	{str(ord(c) - 55): c for c in ascii_uppercase}






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   int						,      _SCREAMING_SNAKE_CASE      :   int   ):
					if isinstance(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   ):
										raise TypeError('int() can\'t convert non-string with explicit base'   )
					if num < 0:
										raise ValueError('parameter must be positive int'   )
					if isinstance(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   ):
										raise TypeError('\'str\' object cannot be interpreted as an integer'   )
					if isinstance(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   ):
										raise TypeError('\'float\' object cannot be interpreted as an integer'   )
					if base in (0, 1):
										raise ValueError('base must be >= 2'   )
					if base > 36:
										raise ValueError('base must be <= 36'   )
					__a			:       List[Any]					    =  ''
					__a			:       int					    =  0
					__a			:       List[Any]					    =  0
					while div != 1:
										__a    ,				__a			:       Optional[int]					    =  divmod(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   )
										if base >= 11 and 9 < mod < 36:
															__a			:       str					    =  ALPHABET_VALUES[str(_SCREAMING_SNAKE_CASE   )]
										else:
															__a			:       Optional[int]					    =  str(_SCREAMING_SNAKE_CASE   )
										new_value += actual_value
										__a			:       Dict					    =  num // base
										__a			:       List[str]					    =  div
										if div == 0:
															return str(new_value[::-1]   )
										elif div == 1:
															new_value += str(_SCREAMING_SNAKE_CASE   )
															return str(new_value[::-1]   )

					return new_value[::-1]


if __name__ == "__main__":
	import doctest

	doctest.testmod()

	for base in range(2, 37):
		for num in range(10_00):
			assert int(decimal_to_any(num, base), base) == num, (
			    num,
			    base,
			    decimal_to_any(num, base),
			    int(decimal_to_any(num, base), base),
			)







'''simple docstring'''



import requests

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






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   str = "Chicago"						,      _SCREAMING_SNAKE_CASE      :   str = APPID   ):
					return requests.get(URL_BASE + 'weather'						,      params=locals()   ).json()






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   str = "Kolkata, India"						,      _SCREAMING_SNAKE_CASE      :   str = APPID   ):
					return requests.get(URL_BASE + 'forecast'						,      params=locals()   ).json()






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   float = 5_5.6_8						,      _SCREAMING_SNAKE_CASE      :   float = 1_2.5_7						,      _SCREAMING_SNAKE_CASE      :   str = APPID   ):
					return requests.get(URL_BASE + 'onecall'						,      params=locals()   ).json()


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

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



