



def      __UpperCamelCase     (  _lowerCAmelCase		)	->  list:



    """simple docstring"""






    if bit_count < 0:
        raise ValueError("""The given input must be positive"""		)

    # get the generated string sequence
    A			:	Tuple										=       gray_code_sequence_string(SCREAMING_SNAKE_CASE_		)
    #
    # convert them to integers
    for i in range(len(SCREAMING_SNAKE_CASE_		)		):
        A			:	Any										=       int(sequence[i]				,					2		)

    return sequence




def      __UpperCamelCase     (  _lowerCAmelCase		)	->  list:



    """simple docstring"""






    if bit_count == 0:
        return ["0"]

    if bit_count == 1:
        return ["0", "1"]

    A			:	Union[str, Any]										=       1 << bit_count  # defines the length of the sequence
    # 1<< n is equivalent to 2^n

    # recursive answer will generate answer for n-1 bits
    A			:	Optional[int]										=       gray_code_sequence_string(bit_count - 1		)

    A			:	List[str]										=       []

    # append 0 to first half of the smaller sequence generated
    for i in range(seq_len // 2		):
        A			:	int										=       """0""" + smaller_sequence[i]
        sequence.append(SCREAMING_SNAKE_CASE_		)

    # append 1 to second half ... start from the end of the list
    for i in reversed(range(seq_len // 2		)		):
        A			:	Dict										=       """1""" + smaller_sequence[i]
        sequence.append(SCREAMING_SNAKE_CASE_		)

    return sequence


if __name__ == "__main__":
     import doctest

     doctest.testmod()






import requests

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




def      __UpperCamelCase     (  _lowerCAmelCase = "Chicago"				,					_lowerCAmelCase = APPID		)	->  dict:



    """simple docstring"""






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




def      __UpperCamelCase     (  _lowerCAmelCase = "Kolkata, India"				,					_lowerCAmelCase = APPID		)	->  dict:



    """simple docstring"""






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




def      __UpperCamelCase     (  _lowerCAmelCase = 55.68				,					_lowerCAmelCase = 12.57				,					_lowerCAmelCase = APPID		)	->  dict:



    """simple docstring"""






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


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

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


