server/aqi.py
def output_center(lat: str, lon: str) -> None:
    ''' prints the center lat and lon in format of direction '''
    if float(lat) < 0:
        north_or_south = 'S'
        lat = float(lat) * -1
    elif float(lat) >= 0:
        north_or_south = 'N'

    if float(lon) < 0:
        east_or_west = 'W'
        lon = float(lon) * -1
    elif float(lon) >= 0:
        east_or_west = 'E'
        
    print(f'CENTER {lat}/{north_or_south} {lon}/{east_or_west}')
 prints the center lat and lon in format of direction 
prints the center lat and lon in format of direction
prints the center lat and lon in format of direction
def output_center(lat: str, lon: str) -> None:
    if float(lat) < 0:
        north_or_south = 'S'
        lat = float(lat) * -1
    elif float(lat) >= 0:
        north_or_south = 'N'
    if float(lon) < 0:
        east_or_west = 'W'
        lon = float(lon) * -1
    elif float(lon) >= 0:
        east_or_west = 'E'
    print(f'CENTER {lat}/{north_or_south} {lon}/{east_or_west}')
def output_center ( lat : str , lon : str ) -> None : if float ( lat ) < 0 : north_or_south = 'S' lat = float ( lat ) * - 1 elif float ( lat ) >= 0 : north_or_south = 'N' if float ( lon ) < 0 : east_or_west = 'W' lon = float ( lon ) * - 1 elif float ( lon ) >= 0 : east_or_west = 'E' print ( f'CENTER {lat}/{north_or_south} {lon}/{east_or_west}' )
prints the center lat and lon in format of direction
prints the center lat and lon in format of direction
''' prints the center lat and lon in format of direction '''
lat
str
lon
str