Solution Exercise 7: Python algorithm that returns the list of divisors of a number

Exercise 7

Write a Python program that returns the list of divisors of a given integer. Example if n = 36 , the algorithm returns the list [1, 2, 3, 6, 9, 18 , 36]

Solution




 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercise 7: Python algorithm that returns the list of divisors of a number

Leave a Reply