⌘K
Flycodx

Check if Quiz Answer is Palindrome

Check if Quiz Answer is Palindrome

EasyStrings0% accepted

Priya participates in a Mumbai quiz show where the bonus round requires palindromic answers for maximum points. Check if her typed answer is a valid palindrome (ignoring spaces and case differences).

Approach

Given an answer string, check if it's a palindrome (reading the same forwards and backwards, ignoring spaces and case).

Input

A man a plan a canal Panama

Output

Yes
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3