I have a program which generates random numbers from -10 to 10. My task is to count how many elements from 1 to 5 are in this massive. the problem is that I can't use functions like counter or others because TypeError: 'int' object is not iterable
. Which functions can i use to fix it?
import random
for i in range(51):
a = random.randint(-10, 10)
print(a)