You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#creating a method to store all the code for finding the multiple of the number which will be defined in the later set of code
number= int(input("Enter a number to find all the divisors of a number below it: "))
def b_divisors(number):
for y in range(1,number+1):
if number%y==0:
print("The multiples of", z, "are", y)
b_divisors(number)
#creating a list and appendig all the numbers preceeding the entered number and looping through that number and calling the method each time for that specific set of number