Problem with the Practice Problem:Lapindromes

I have a problem that i am getting WA in the practice problem:Lapindromes with code:LAPIN.
More specifically when i run it, it runs fine and when i put in custom input,the one that is given by the exercise then i get back one less output and i think that is the problem but i don’t know how to fix it.If anyone could help me to make it run successfully i would highly appreciate it.Here is a picture of my code:

You seem to now have an accepted version of LAPIN, well done, but I will caution you against using that kind of general-purpose try-except around your program; that is very likely to hide problems that need fixing.

For comparison here is a solution of mine (link) from a few years ago.