Talk:Heronian triangles: Difference between revisions

Content added Content deleted
(Python draft corrupted ? or Python version issue ? Appears to be overgenerating)
(Python should work now for version 2 too)
Line 3: Line 3:


::I wonder if a spark of static or noise entered the Python version at some point in its editing history ? On my system the current draft overgenerates triangles, giving a different output from that shown. (It seems to find 1383 rather than 517 triangles). If not an editing glitch then possibly an artefact of changing Python versions ? I am running Python 2.7.10 on OS X 10.11. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 00:12, 25 October 2015 (UTC)
::I wonder if a spark of static or noise entered the Python version at some point in its editing history ? On my system the current draft overgenerates triangles, giving a different output from that shown. (It seems to find 1383 rather than 517 triangles). If not an editing glitch then possibly an artefact of changing Python versions ? I am running Python 2.7.10 on OS X 10.11. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 00:12, 25 October 2015 (UTC)

:::The solution originally just worked for Python 3. I've added the necessary <code>__future__</code> import. --[[User:AndiPersti|Andreas Perstinger]] ([[User talk:AndiPersti|talk]]) 07:00, 25 October 2015 (UTC)