How do I get this code to print a list of numbers instead of a column of numbers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
0 Answers