0
How do I get this code to print it’s output in a list?
n = int(input()) def facts(x): for i in range(1,x+1): for j in range(1,x+1): if x / i == j: print(i) print(facts(n))
2 Respuestas
+ 1
Append those values into a empty list..
then print it.
n = int(input()) def facts(x): for i in range(1,x+1): for j in range(1,x+1): if x / i == j: print(i) print(facts(n))