• WetBeardHairs@lemmy.ml
    ·
    1 year ago

    Neat. I don't like that the implementations have to name the function by some cryptic identifier, though. Real words matter in source code.

    Who can tell me what this function is?

    def Z10096(Z10096K1):
        return Z10096K1 == Z10096K1[::-1]
    

    How about this?

    def isPalimdrone(myString):
        return myString == myString[::-1]