workshophub563992

Study notes: palindrome check in Python

Nov 1st, 2026
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Study notes: palindrome check in Python
  2.  
  3. Task: check whether a string reads the same forwards and backwards, ignoring case and spaces.
  4.  
  5. Solution: keep letters and digits, lower-case them and compare with the reversed copy.
Advertisement
Add Comment
Please, Sign In to add comment