Calculating average and outputting number of cases which were more than and less than average from a list
<p>Task:
Write an algorithm to allow a user to input the maximum and minimum daily temperatures for a number of days until a maximum temperature of 999 is entered.</p>

<p>The program then calculates the average temperature and outputs the number of days that the temperature was above average. It also outputs the number of days that the temperature was negative.</p>

<p>My code that returns with a syntax error: <a href="http://imgur.com/ArMFAk3" rel="nofollow">http://imgur.com/ArMFAk3</a></p>

<p><code>input</code> returns a string.  To make it an integer do <code>int( input('Enter temperature: '))</code></p>

python