• + 0 comments
    def funnyString(s):
        for i in range(1, math.ceil(len(s)/2)+1):
            if abs(ord(s[i])-ord(s[i-1])) != abs(ord(s[-i])-ord(s[-i-1])):
                return 'Not Funny'
        return 'Funny'