





import requests

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




def     a__ (					lowercase__ = "Chicago"  ,    lowercase__ = APPID  ):






   '''simple docstring'''






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




def     a__ (					lowercase__ = "Kolkata, India"  ,    lowercase__ = APPID  ):






   '''simple docstring'''






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




def     a__ (					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:
          __lowercase  :   Any						      =input("""Enter a location:""").strip()
          if location:
               pprint(current_weather(location))
          else:
               break











from __future__ import annotations




def     a__ (					lowercase__  ,    lowercase__  ):






   '''simple docstring'''






   UpperCAmelCase_						,       UpperCAmelCase_											=set(lowercase__  ), [start]

   while stack:
      UpperCAmelCase_											=stack.pop()
      explored.add(lowercase__  )
      # Differences from BFS:
      # 1) pop last element instead of first one
      # 2) add adjacent elements to stack without exploring them
      for adj in reversed(graph[v]  ):
         if adj not in explored:
            stack.append(lowercase__  )
   return explored


__lowercase  :   Dict						      ={
    """A""": ["""B""", """C""", """D"""],
    """B""": ["""A""", """D""", """E"""],
    """C""": ["""A""", """F"""],
    """D""": ["""B""", """D"""],
    """E""": ["""B""", """F"""],
    """F""": ["""C""", """E""", """G"""],
    """G""": ["""F"""],
}

if __name__ == "__main__":
     import doctest

     doctest.testmod()
     print(depth_first_search(G, """A"""))




