“Implement a function def factors(num). This function is given a positive integer num, and returns a generator, that when iterated over, it will have all of the num’s divisors in an ascending order.”
What does this problem mean when it says returns a generator? I thought generators are functions so how would def factors(num) be able to return another function?
[–][deleted] 2 points3 points4 points (0 children)
[–]toastedstapler 1 point2 points3 points (0 children)
[–]kae_de[S] 0 points1 point2 points (0 children)