You are viewing a single comment's thread. Return to all 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'
Seems like cookies are disabled on this browser, please enable them to open this website
Funny String
You are viewing a single comment's thread. Return to all comments →