Ad

This is so cursed lmao, basically my first type using lambdas in python and certain my first type initializing classes with type() like i didn't even know u could do that. shrunk by 15 characters (141 -> 126), i wouldn't even know where to squeeze out another one but its probably possible, so good luck to any future attemptees.
anyways fun challenge :)

Code
Diff
  • def f(s,p):s.c='No'if sum(map(ord,p.lower()))%324or p==''else'Yes'
    KumiteFoo=type('',(),{"__init__":f,"solution":lambda s:s.c})
    • def x(s,p):s.c=('No','Yes')[len(p)and not sum(map(ord,p.lower()))%324]
    • KumiteFoo=type('KumiteFoo',(),{'__init__':x,'solution':lambda s:s.c})
    • def f(s,p):s.c='No'if sum(map(ord,p.lower()))%324or p==''else'Yes'
    • KumiteFoo=type('',(),{"__init__":f,"solution":lambda s:s.c})