Ad

What if we couldn't use a standard function because the order of parameters wasn't the same?

Code
Diff
  • from operator import contains
    common_substring = lambda a, b: contains(b, a)
    • from operator import contains as common_substring
    • from operator import contains
    • common_substring = lambda a, b: contains(b, a)