


'''simple docstring'''

import requests

a_    :							List[Any]         =					""""""  # <-- Put your OpenWeatherMap appid here!
a_    :							int         =					"""https://api.openweathermap.org/data/2.5/"""





def __snake_case   ( UpperCAmelCase_		:		Dict = "Chicago"   ,							UpperCAmelCase_		:		List[str] = APPID						):
 return requests.get(URL_BASE + "weather"   ,							params=locals()						).json()





def __snake_case   ( UpperCAmelCase_		:		List[Any] = "Kolkata, India"   ,							UpperCAmelCase_		:		Dict = APPID						):
 return requests.get(URL_BASE + "forecast"   ,							params=locals()						).json()





def __snake_case   ( UpperCAmelCase_		:		str = 55.68   ,							UpperCAmelCase_		:		Tuple = 12.57   ,							UpperCAmelCase_		:		Tuple = APPID						):
 return requests.get(URL_BASE + "onecall"   ,							params=locals()						).json()


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

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






__lowercase				      =						[4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
__lowercase				      =						[3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
__lowercase				      =						{
    0: """Sunday""",
    1: """Monday""",
    2: """Tuesday""",
    3: """Wednesday""",
    4: """Thursday""",
    5: """Friday""",
    6: """Saturday""",
}







def 							_lowerCamelCase   (			SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE   ):
      '''simple docstring'''







      assert len(str(SCREAMING_SNAKE_CASE   )   ) > 2, "year should be in YYYY format"
      assert 1 <= month <= 12, "month should be between 1 to 12"
      assert 1 <= day <= 31, "day should be between 1 to 31"

      # Doomsday algorithm:
      A_							       =		year // 100
      A_							       =		(5 * (century % 4) + 2) % 7
      A_							       =		year % 100
      A_							       =		centurian % 12
      A_							       =		(
          (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
      ) % 7
      A_							       =		(
          DOOMSDAY_NOT_LEAP[month - 1]
          if (year % 4 != 0) or (centurian == 0 and (year % 400) == 0)
          else DOOMSDAY_LEAP[month - 1]
      )
      A_							       =		(dooms_day + day - day_anchor) % 7
      return WEEK_DAY_NAMES[week_day]


if __name__ == "__main__":
      import doctest

      doctest.testmod()





