Skip to main content
3 events
when toggle format what by license comment
Sep 21, 2015 at 15:57 history edited Beta Decay CC BY-SA 3.0
deleted 10 characters in body; added 17 characters in body
Sep 21, 2015 at 14:09 comment added Todd You can perform inplace addition on an integer rather than a list which will remove the need to square brackets and the final sum. 's=p(input())' will allow you the remove the int conversion on the while loop and assignment to x. Also consider looping through the zip of g and g[1:] which should save some bytes.
Sep 20, 2015 at 8:29 history answered Beta Decay CC BY-SA 3.0