Skip to main content
9 events
when toggle format what by license comment
Jul 18, 2022 at 6:12 history edited loopy walt CC BY-SA 4.0
added 521 characters in body
Jul 17, 2022 at 15:14 history edited loopy walt CC BY-SA 4.0
added 531 characters in body
Jul 17, 2022 at 9:44 comment added xnor 8**t*int(s[-1])%9 saves 1, though I like your trick with the - in the int()
Jul 13, 2022 at 13:52 history edited loopy walt CC BY-SA 4.0
added 541 characters in body
Jul 13, 2022 at 13:52 comment added loopy walt @ovs No, no. I actually like it.
Jul 13, 2022 at 13:41 comment added ovs No I just entered the numbers into pysearch, don't think this is really worth an additional answer. But feel free to not include that change if you want to keep your original formula.
Jul 13, 2022 at 13:36 comment added loopy walt @ovs Neat magic! Are you sure you don't want to submit your own answer?
Jul 13, 2022 at 13:25 comment added ovs An f-string can save a byte, and using a magic formula instead of str.find brings this down to 68 bytes
Jul 13, 2022 at 2:41 history answered loopy walt CC BY-SA 4.0