Hi All, once again I need your help. I am trying to slove 15256. Partition function (EASY) but getting NZEC. I am not good at python.I am refering below algorithm form mathworld.wolfram.com/PartitionFunctionP.html
Code removed
The reason for the NZEC is the way you used the write()-function: write() expects a string as argument, not an integer.So either you make a type conversion or you use "print" instead, which can handle any type.
Thank you very much.Got AC.