Is it possible to use the 'if' statement under the 'return' statement in the recursive function call? If not, what are the other technics/ways to compensate for it? for example:
def is_palindrome(s, count=0):
if count == int(len(s)/2):
return True
return is_palindrome(s,count+1) if s[count] == s[len(s)-(count+1)]
res = is_palindrome("rever")
print(res)