
'''simple docstring'''
import requests

lowerCAmelCase					:    List[str]           = ''  # <-- Put your OpenWeatherMap appid here!
lowerCAmelCase					:    Tuple           = 'https://api.openweathermap.org/data/2.5/'







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







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







def 		A_(     A						:		float = 55.68		,     A						:		float = 12.57		,     A						:		str = APPID):
							return requests.get(URL_BASE + 'onecall'		,     params=locals()).json()


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

						while True:
												lowerCAmelCase					:    Optional[int]           = input('Enter a location:').strip()
												if location:
																		pprint(current_weather(location))
												else:
																		break







'''simple docstring'''

# Function to print upper half of diamond (pyramid)

def 					__UpperCamelCase				(						lowercase__    :	Optional[Any]			):






     '''simple docstring'''





     for i in range(0,       lowercase__			):
          for _ in range(0,       n - i - 1			):  # printing spaces
               print(' ',       end=''			)
          for _ in range(0,       i + 1			):  # printing stars
               print('* ',       end=''			)
          print()

def 					__UpperCamelCase				(						lowercase__    :	Optional[Any]			):






     '''simple docstring'''





     for i in range(lowercase__,       0,       -1			):
          for _ in range(lowercase__,       0,       -1			):  # printing stars
               print('* ',       end=''			)
          print()
          for _ in range(n - i + 1,       0,       -1			):  # printing spaces
               print(' ',       end=''			)

def 					__UpperCamelCase				(						lowercase__    :	Any			):






     '''simple docstring'''





     if n <= 0:
          print('       ...       ....        nothing printing :('			)
          return
     floyd(lowercase__			)  # upper half
     reverse_floyd(lowercase__			)  # lower half


if __name__ == "__main__":
       print(r'''| /\ | |- |  |-  |--| |\  /| |-''')
       print(r'''|/  \| |- |_ |_  |__| | \/ | |_''')
       UpperCAmelCase					 =	1
       while K:
              UpperCAmelCase					 =	int(input('''enter the number and , and see the magic : '''))
              print()
              pretty_print(user_number)
              UpperCAmelCase					 =	int(input('''press 0 to exit... and 1 to continue...'''))

       print('''Good Bye...''')


