Python Forum
finding almost palindromes
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
finding almost palindromes
#1
Hi i'm studying how to code with python and we were given an assignment to write a code that finds almost palindromes.
The code has to, given a certain string, check if by deleting one of the characters in the string it becomes a palindrome.
can you give me a hint on how to start?
Reply
#2
I would start with code that detects a palindrome. Then identify (without worrying about the code) what method you would use for identifying "almost palindromes." After you've done those two things separately you should start thinking about your final code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Palindromes - Python Help SantiagoPB 5 2,581 Apr-05-2021, 09:26 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020