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.

Required fields*

9
  • 2
    \$\begingroup\$ Welcome to PPCG! If you spent time writing and golfing an answer and didn't plagiarise (without attribution), then you're welcome to post your answer! \$\endgroup\$ Commented Feb 10, 2016 at 21:26
  • \$\begingroup\$ Oh and most languages have a golfing-tips style question here. Python is no exception \$\endgroup\$ Commented Feb 10, 2016 at 21:30
  • \$\begingroup\$ Note that this does work with input of 2 (integer) \$\endgroup\$ Commented Feb 10, 2016 at 21:36
  • 3
    \$\begingroup\$ This returns True also for e('oo', '3') and similar substrings. \$\endgroup\$ Commented Feb 11, 2016 at 8:46
  • 1
    \$\begingroup\$ @TheLateOne, Python isn't very golfable, so you will almost never beat the golfing languages like pyth or cjam, but getting in the 50, 60, or 70 range is pretty good for us on most challenges. Don't get discouraged! \$\endgroup\$ Commented Feb 11, 2016 at 14:47