It's weird because my code works fine in online python interpreter but when I run it in linux mint with Atom, I have this error message when I enter a word:
File "<string>", line 1, in <module>
NameError: name 'lol' is not defined
Here is my code
# -*- coding: utf-8 -*-
word = str(input(" Enter a word : "))
reverse = word[::-1]
if reverse == word:
print("it is a palindrome, félicitation : ")
else:
print(" it is not a palindrome : ")