We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
deffunnyString(s):# Complete this functionrev=s[::-1]foriinrange(len(s)-1):ifabs(ord(s[i+1])-ord(s[i]))!=abs(ord(rev[i+1])-ord(rev[i])):return"Not Funny"return"Funny"
Funny String
You are viewing a single comment's thread. Return to all comments →
Cool one Ninja_Kx. My soln