Please help me with code. Python Getting error


#1

I’m getting this error here:

**Traceback (most recent call last):** File "main.py", line 227, in print_list(Z) File "main.py", line 194, in print_list for i in l:TypeError: 'int' object is not iterable

Your submission encountered runtime error for the following input:

A : 85463

The expected output for this testcase is:

1 7 29 203 421 2947 12209 85463

Please help.


#2

#1 You will need create a collection such as a list to hold all the divisor of A.

#2 Use return instead of print.

#3 when A == 1 return [1] instead of 1

Hope this helps.