79200747

Date: 2024-11-18 16:51:24
Score: 3.5
Natty:
Report link

won't this be much simplier?

def validate_string(string):
    spl = string.split(',')
    return all(word.count('=') == 1 for word in spl)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Freddy