def main():
    '\n    To find the highest and lowest temperature, cold days and the average.\n    '
    print('stanCode "Weather Master 4.0"!')
    maximum = (- 100000000)
    minimum = 100000000
    total = 0
    count = 0
    cold_day = 0
    while True:
        temperature = int(input((('Next Temperature: (or ' + str(EXIT)) + ' to quit)? ')))
        if ((temperature == EXIT) and (count == 0)):
            print('No temperatures were entered.')
            break
        if ((temperature > 90) or (temperature < (- 100))):
            print((('>>> The temperature "' + str(temperature)) + '" not exist, so we exclude and stop it.'))
            break
        if (temperature == EXIT):
            break
        else:
            count += 1
            if (temperature < 16):
                cold_day += 1
            total += temperature
            if (temperature > maximum):
                maximum = temperature
            if (temperature < minimum):
                minimum = temperature
            else:
                pass
    if (count != 0):
        avg = (total / count)
        print('')
        print(('Highest temperature = ' + str(maximum)))
        print(('Lowest temperature = ' + str(minimum)))
        print(('Average = ' + str(avg)))
        print((str(cold_day) + ' cold day(s)'))
    '\n    My note:\n    This is the first try, when I debug I found the calculation logic is wrong.\n    The first variable I type will disappear when it enter into the while loop. And the count of \n    total days would include the EXIT constant.\n    '
To find the highest and lowest temperature, cold days and the average.
def main():
    '\n    \n    '
    print('stanCode "Weather Master 4.0"!')
    maximum = (- 100000000)
    minimum = 100000000
    total = 0
    count = 0
    cold_day = 0
    while True:
        temperature = int(input((('Next Temperature: (or ' + str(EXIT)) + ' to quit)? ')))
        if ((temperature == EXIT) and (count == 0)):
            print('No temperatures were entered.')
            break
        if ((temperature > 90) or (temperature < (- 100))):
            print((('>>> The temperature "' + str(temperature)) + '" not exist, so we exclude and stop it.'))
            break
        if (temperature == EXIT):
            break
        else:
            count += 1
            if (temperature < 16):
                cold_day += 1
            total += temperature
            if (temperature > maximum):
                maximum = temperature
            if (temperature < minimum):
                minimum = temperature
            else:
                pass
    if (count != 0):
        avg = (total / count)
        print()
        print(('Highest temperature = ' + str(maximum)))
        print(('Lowest temperature = ' + str(minimum)))
        print(('Average = ' + str(avg)))
        print((str(cold_day) + ' cold day(s)'))
    '\n    My note:\n    This is the first try, when I debug I found the calculation logic is wrong.\n    The first variable I type will disappear when it enter into the while loop. And the count of \n    total days would include the EXIT constant.\n    '