Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    \$\begingroup\$ Welcome to PPCG! To save some bytes, (a,b)==(0,0) -> a==b==0, return(1) -> return 1, input("") -> input(), and you can save str as s=str at the beginning and use it as s(x) later. \$\endgroup\$
    – Stephen
    Commented Nov 3, 2019 at 17:47
  • \$\begingroup\$ Wow, Jo. Thanks a lot. Learned a ton. Also managed to pop one byte off your solution so the code is now updated :D \$\endgroup\$ Commented Nov 4, 2019 at 4:40
  • \$\begingroup\$ 284 bytes with some stuff I missed earlier. Feel free to use it even if you can't golf more (though you should be able to) \$\endgroup\$
    – Jo King
    Commented Nov 4, 2019 at 7:12
  • 1
    \$\begingroup\$ Cool. I couldn't make it any shorter but now the 2nd row now spells despacito \$\endgroup\$ Commented Nov 4, 2019 at 10:52