



'''simple docstring'''






from __future__ import annotations

from random import choice
def  lowerCamelCase__			(		_A							):
  return choice(UpperCamelCase_							)
def  lowerCamelCase__			(		_A					,     _A							):
  a		:   Any	  =	random_pivot(UpperCamelCase_							)

  # partition based on pivot
  # linear time
  a		:   Any	  =	[e for e in lst if e < pivot]
  a		:   int	  =	[e for e in lst if e > pivot]

  # if we get lucky, pivot might be the element we want.
  # we can easily see this:
  # small (elements smaller than k)
  # + pivot (kth element)
  # + big (elements larger than k)
  if len(UpperCamelCase_							) == k - 1:
    return pivot
  # pivot is in elements bigger than k
  elif len(UpperCamelCase_							) < k - 1:
    return kth_number(UpperCamelCase_					,     k - len(UpperCamelCase_							) - 1							)
  # pivot is in elements smaller than k
  else:
    return kth_number(UpperCamelCase_					,     UpperCamelCase_							)


if __name__ == "__main__":
     import doctest

     doctest.testmod()



import requests

_SCREAMING_SNAKE_CASE     :					Optional[int]      =       ""  # <-- Put your OpenWeatherMap appid here!
_SCREAMING_SNAKE_CASE     :					Optional[Any]      =       "https://api.openweathermap.org/data/2.5/"
def      UpperCAmelCase__		(UpperCamelCase_ = "Chicago"				,UpperCamelCase_ = APPID							):



     """simple docstring"""






     return requests.get(URL_BASE + '''weather'''				,params=locals()							).json()
def      UpperCAmelCase__		(UpperCamelCase_ = "Kolkata, India"				,UpperCamelCase_ = APPID							):



     """simple docstring"""






     return requests.get(URL_BASE + '''forecast'''				,params=locals()							).json()
def      UpperCAmelCase__		(UpperCamelCase_ = 55.68				,UpperCamelCase_ = 12.57				,UpperCamelCase_ = APPID							):



     """simple docstring"""






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


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

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




