<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 7:46 AM, fl <span dir="ltr"><<a href="mailto:rxjwg98@gmail.com" target="_blank">rxjwg98@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
When I search solution of reverse a string/number, I came across a short<br>
function online:<br>
<br>
>>> def palindrome(num):<br>
        return str(num) == str(num)[::-1]<br>
<br>
I thought that it is a general function. And with the following variable:<br>
<br>
>>> a<br>
'1234_5555'<br>
<br>
>>> parlindrome(a)<br>
<br>
Traceback (most recent call last):<br>
  File "<pyshell#126>", line 1, in <module><br>
    parlindrome(a)<br>
NameError: name 'parlindrome' is not defined<br>
<br>
<snip></blockquote><div><br></div><div>Further to the mentioned, be careful with your spelling, the function name as you've shown is "palindrome" but you're invoking it using "parlindrome".</div><div><br></div><div>Regards</div></div></div></div>