I keep getting this error: TypeError: 'int' object is not iterable.
My assignment that I need to (so you have some background on what I am trying to achieve) is this: "Write a program that will create 100 random integer numbers, both negative and positive between -10 and +10 (in a for loop) and then determine how many were positive and how many were negative. Finally, print out how many numbers were positive and how many numbers were negative."
import random
positive = 0
negative = 0
for number in random.randrange(-10,10):
if number > 0:
positive += 1
else:
negative += 1
print ("End")
That's my code so far. If anyone can help me using the above information and my error, that'd be great!