my code gives me the correct result, but will not stop looping. Newbie question. Any help is greatly appreciated
#Gets user integer input
while True:
value = int(input(" Please print a positive integer:"))
num = value + 1
# re-prompts user for valid entry
if value <= 0:
continue
#calculates all numbers divisible by user enter
if value > 0:
print('The factors of', value, 'are:')
for i in range(1, num):
factors = value % i
if factors == 0:
print(i)