title: Python program that produces sum of negative and positive numbers?
body: <p>This is what i have so far, i am creating a program that asks the user to enter 7 numbers. These numbers can be any numbers. The end result will give the averages of the positive numbers, the negative numbers, and all the numbers as follows:</p>
  
  <pre><code>average positive="" 
  average negative="" 
  average all=""
  
  
  import random
  
  def main():
          sum_positive=0 
          count_positive=0 # number of positive 
          sum_negative=0 
          count_negative=0 # number of negative 
  
      for i in range (7): 
          n=input("Please, enter number %d: " % i) # will display prompt like "Please, enter         number 1:" 
          print ("number entered: ",n) # this will print the entered number, one of the question 
          if n &gt; 0: 
             count_positive += 1 
             sum_positive = sum_positive + n 
          elif n &lt; 0: 
             count_negative += 1 
             sum_negative = sum_negative + n 
      # loop ends here 
      print("Sum of negative number is :", sum_negative) 
      print("Average negative number is : ", sum_negative*1.0/count_negative) 
      print("Sum of positive number is :", sum_positive) 
      print("Average positive number is : ", sum_positive*1.0/count_positive)
  
  
  
  main()
  </code></pre>