Data types · 22 / 29 Exercise Medium

Is it a palindrome?

Objective

A palindrome is a word that reads the same forwards and backwards, like level. Create a Python program that checks it.

Instructions

  • Read a lower-case word with no spaces.
  • Compare the word with itself reversed.
  • Show True if they are equal and False otherwise.
Input
reconocer
Output
True

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise