Oct-16-2022, 02:15 PM
hi,
in the following code:
in the following code:
__author__ = 'jeffreyhunt' num = int(input("Please choose a number to divide: ")) listRange = list(range(1,num+1)) divisorList = [] for number in listRange: if num % number == 0: divisorList.append(number) print(divisorList)what is the meaning of num+1 ?