1. Other
  2. Other
  3. hi there just wanting to know whether someone is available...

Question: hi there just wanting to know whether someone is available...

Question details

Hi there just wanting to know whether someone is available for information technology. I am doing a python course through a MOOC and they are asking asking the following question. 

 

2. Write a Python program to find average of maximum of ‘n’ positive numbers entered by user. But, if the input is negative, display the average (excluding the average of negative input) and end the program. 

 

Just wanting to know how i would approach the problem. Would you use a for loop and a while loop or could you use one or the other. I am new to this sorry!

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution