

'''simple docstring'''







from __future__ import annotations
def  UpperCAmelCase__      ( UpperCAmelCase__,    UpperCAmelCase__			)     ->     bool:
       if len(UpperCAmelCase__			) == 0:
              return False
       A_		   = len(UpperCAmelCase__			) // 2
       if a_list[midpoint] == item:
              return True
       if item < a_list[midpoint]:
              return binary_search(a_list[:midpoint],    UpperCAmelCase__			)
       else:
              return binary_search(a_list[midpoint + 1 :],    UpperCAmelCase__			)


if __name__ == "__main__":
      __lowerCamelCase						    =      input('''Enter numbers separated by comma:\n''').strip()
      __lowerCamelCase						    =      [int(item.strip()) for item in user_input.split(''',''')]
      __lowerCamelCase						    =      int(input('''Enter the number to be found in the list:\n''').strip())
      __lowerCamelCase						    =      '''''' if binary_search(sequence, target) else '''not '''
      print(f"""{target} was {not_str}found in {sequence}""")



'''simple docstring'''







import requests

__lowerCamelCase						    =      ''''''  # <-- Put your OpenWeatherMap appid here!
__lowerCamelCase						    =      '''https://api.openweathermap.org/data/2.5/'''
def  UpperCAmelCase__      ( UpperCAmelCase__ = "Chicago",    UpperCAmelCase__ = APPID			)     ->     dict:
       return requests.get(URL_BASE + """weather""",    params=locals()			).json()
def  UpperCAmelCase__      ( UpperCAmelCase__ = "Kolkata, India",    UpperCAmelCase__ = APPID			)     ->     dict:
       return requests.get(URL_BASE + """forecast""",    params=locals()			).json()
def  UpperCAmelCase__      ( UpperCAmelCase__ = 55.68,    UpperCAmelCase__ = 12.57,    UpperCAmelCase__ = APPID			)     ->     dict:
       return requests.get(URL_BASE + """onecall""",    params=locals()			).json()


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

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