numberList = list()
while True:
    input = raw_input("Enter a number : ")
    if input == "done":
        break
    number = float(input)
    numberList.append(number)

average = sum(numberList) / len(numberList)
print "Average :", average

@@ -95,23 +95,30 @@
 ne%22:
-%0A        break%0A
+ break%0A%0A    try :%0A    
     
@@ -139,16 +139,20 @@
 (input)%0A
+    
     numb
@@ -172,16 +172,116 @@
 (number)
+%0A    except :%0A        print 'Please enter only numbers. Instead of number you have entered -', input
 %0A%0Aaverag

Updated the logic