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))

25th Aug 2019, 10:56 PM
Evan
2 Respuestas
+ 1
Append those values into a empty list.. then print it.
26th Aug 2019, 1:50 AM
V.K.n.ganesh
V.K.n.ganesh - avatar