1 | initial version |
Hello,
I finally figured out how to create the above in one list. Instead of multiple rows with one element, I have one row with multiple elements. I don't know if that is the right "descriptive language" in Sage or python talk so just copy and paste and you will see what I mean.
L1 =[divisors(i) for i in range(1,100,1)]
print L1
L2 =[sum(divisors(i))-i for i in range(1,100,1)]
print L2
2 | No.2 Revision |
Hello,
I finally figured out how to create the above in one list. Instead of multiple rows with one element, I have one row with multiple elements. I don't know if that is the right "descriptive language" in Sage or python talk so just copy and paste paste, compare to above and you will see what I mean.
L1 =[divisors(i) for i in range(1,100,1)]
print L1
L2 =[sum(divisors(i))-i for i in range(1,100,1)]
print L2