← Amazon questions
CodingReported in a candidate post, Oct 2022

Check whether a string is a palindrome (Python)

Filed under Amazon

Write a Python function that checks whether a given string is a palindrome (it reads the same forwards and backwards), then explain your code line by line. Be ready to discuss alternative approaches…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.