Creating a loop and calculateing average at the end : I'm a beginner when it comes to programming and coding, so please excuse me if i ask any silly or obvious questions. I just started out learning Python and got an assignment which has one question i'm just not sure how to start with it. The question goes as follows:

"Write a program that repeatedly asks the user to enter a number, either float or integer until a value -88 is entered. The program should then output the average of the numbers entered with two decimal places. Please note that -88 should not be counted as it is the value entered to terminate the loop"

this will probably be a very simple thing to do for all of you :-) but for a total beginner as myself, it through me off a little. I have gotten the program to ask a number repeatedly and terminate the loop with -99 but I'm struggling to get it to accept integer numbers (1.1 etc) and calculate the average of the numbers entered.

Any help or tips will be gladly appreciated to help me solve this little puzzle i got.

Thanks in advanced

Dio 

 
