79274424

Date: 2024-12-12 09:11:41
Score: 0.5
Natty:
Report link

I prefer this one:

if (
    len(regex) > 2 and regex[0] == '(' and regex[-1] == ')' 
    and sum(regex.count(char) for char in splitter) == 1 
    and regex.count('(') == 1 and regex.count(')') == 1
):
    print('hi')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Martin Grůber