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