0
Please ,, solve the error. palindrome word
def is_palindrome(word): if word == word[::-1]: return "name is palindrome" return "name is not palindrome" word = input ("enter name ") print (is_palindrome)
5 ответов
+ 2
dreams success
return "Name is palindrome"
return "Name is not palindrome"
print(is_palindrome(word))
+ 2
Because you called your function without passing it an argument.
As Diego said, it should be
print(is_palindrome(word))
not
print(is_palindrome)
+ 1
You can only return true or false in this case, but you can print name is palindrome or not
+ 1
Thank you 😊
0
Why code show error??