"""simple docstring"""


from __future__ import annotations

UpperCAmelCase__     						=  1_0






def 			__UpperCAmelCase    (	lowercase						):







  """simple docstring"""
  _UpperCAmelCase         =					1
  _UpperCAmelCase         =					max(lowercase						)
  while placement <= max_digit:
    # declare and initialize empty buckets
    _UpperCAmelCase         =					[[] for _ in range(lowercase						)]
    # split list_of_ints between the buckets
    for i in list_of_ints:
      _UpperCAmelCase         =					int((i / placement) % RADIX						)
      buckets[tmp].append(lowercase						)
    # put each buckets' contents into list_of_ints
    _UpperCAmelCase         =					0
    for b in range(lowercase						):
      for i in buckets[b]:
        _UpperCAmelCase         =					i
        a += 1
        # move to next
    placement *= RADIX
  return list_of_ints


if __name__ == "__main__":
    import doctest

    doctest.testmod()

"""simple docstring"""


import requests

UpperCAmelCase__     						=  """"""  # <-- Put your OpenWeatherMap appid here!
UpperCAmelCase__     						=  """https://api.openweathermap.org/data/2.5/"""






def 			__UpperCAmelCase    (	lowercase = "Chicago"      ,lowercase = APPID						):







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






def 			__UpperCAmelCase    (	lowercase = "Kolkata, India"      ,lowercase = APPID						):







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






def 			__UpperCAmelCase    (	lowercase = 55.68      ,lowercase = 12.57      ,lowercase = APPID						):







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


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

    while True:
        UpperCAmelCase__     						=  input("""Enter a location:""").strip()
        if location:
            pprint(current_weather(location))
        else:
            break
