id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

david.white@denison.edu cs111fall2019 > is_palindrome
prev  |  next  |  chance

A palindrome is a word or phrase that reads the same forward or backward. Only the letters count (not any spaces or punctuation), and a lowercase letter matches an uppercase one. So "Race car!" is a palindrome. Write the function is_palindrome that returns True only for strings that are palindromes.


is_palindrome('radar') → True
is_palindrome('Radar!!') → True
is_palindrome('radio') → False

...Save, Compile, Run (ctrl-enter)

def is_palindrome(phrase):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 230 Post-solution available

Copyright Nick Parlante 2017 - privacy