No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.
Determine whether a given string is a palindrome.
You are given a string variable
A palindrome is a string that reads the same forward and backward (e.g., 'madam', 'racecar').
Check whether
Print 'Palindrome' if it is, or 'Not palindrome' otherwise.
Output:
Get your code reviewed and validated to understand what you did right and where you can improve.