


'''simple docstring'''



def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   list[list[int]]						,      _SCREAMING_SNAKE_CASE      :   int						,      _SCREAMING_SNAKE_CASE      :   int						,      _SCREAMING_SNAKE_CASE      :   set   ):
					__a    ,				__a			:       Optional[Any]					    =  len(_SCREAMING_SNAKE_CASE   ), len(grid[0]   )
					if (
					    min(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   ) < 0
					    or row == row_length
					    or col == col_length
					    or (row, col) in visit
					    or grid[row][col] == 1
					):
										return 0
					if row == row_length - 1 and col == col_length - 1:
										return 1

					visit.add((row, col)   )

					__a			:       Dict					    =  0
					count += depth_first_search(_SCREAMING_SNAKE_CASE						,      row + 1						,      _SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   )
					count += depth_first_search(_SCREAMING_SNAKE_CASE						,      row - 1						,      _SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE   )
					count += depth_first_search(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE						,      col + 1						,      _SCREAMING_SNAKE_CASE   )
					count += depth_first_search(_SCREAMING_SNAKE_CASE						,      _SCREAMING_SNAKE_CASE						,      col - 1						,      _SCREAMING_SNAKE_CASE   )

					visit.remove((row, col)   )
					return count


if __name__ == "__main__":
	import doctest

	doctest.testmod()







'''simple docstring'''



import requests

__lowercase	:						Tuple       =	''  # <-- Put your OpenWeatherMap appid here!
__lowercase	:						Tuple       =	'https://api.openweathermap.org/data/2.5/'






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   str = "Chicago"						,      _SCREAMING_SNAKE_CASE      :   str = APPID   ):
					return requests.get(URL_BASE + 'weather'						,      params=locals()   ).json()






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   str = "Kolkata, India"						,      _SCREAMING_SNAKE_CASE      :   str = APPID   ):
					return requests.get(URL_BASE + 'forecast'						,      params=locals()   ).json()






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE      :   float = 5_5.6_8						,      _SCREAMING_SNAKE_CASE      :   float = 1_2.5_7						,      _SCREAMING_SNAKE_CASE      :   str = APPID   ):
					return requests.get(URL_BASE + 'onecall'						,      params=locals()   ).json()


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

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



