def count_consecutive_summers(end):
start = 0
count =0
adder = 1
mylist = [i for i in range(1,end+1)]
while start < end+1:
for i in range(len(mylist)):
if sum(mylist[start:i+1])>end:
pass
elif sum(mylist[start:i+1]) == end:
count +=1
start += 1
start +=1
return count
if __name__ == '__main__':
print(count_consecutive_summers(42)) #4
print(count_consecutive_summers(99)) #6
print(count_consecutive_summers(1)) #1
print(count_consecutive_summers(1575)) #1
print(count_consecutive_summers(2835)) #1