Eu tenho esse código, para contar quantas vezes os números fornecidos aparecem em um intervalo.
#!/usr/bin python
# -*- coding: utf-8 -*-
seq=0
seq1=0
seq2=0
seq3=0
numbers=4
while(numbers >= 0):
numbers = input("Type some number: ")
if(0<=numbers<=25):
seq+=1
elif(26<=numbers<=50):
seq1+=1
elif(51<=numbers<=75):
seq2+=1
elif(76<=numbers<=100):
seq3+=1
print("Numbers between 0 and 25: "), seq
print("Numbers between 26 and 50: "), seq1
print("Numbers between 51 and 75: "), seq2
print("Numbers entre 76 and 100: "), seq3