+ 1

How do I get this code to print a list of numbers instead of a column of numbers?

n = int(input()) def facts(n): for i in range(1,n+1): for j in range(1,n+1): if n / i == j: print(i) print(facts(n))

20th Aug 2019, 11:04 PM
Evan
1 ответ