title: Checking if number is palindromic
body: <p>By passing user input as function call argument and using division.
  I cannot understand where I am going wrong even when my logic is correct.</p>
  <pre><code>class Solution:
  
      def isPalindrome(self, x: int) -&gt; bool:
  
          x = int(input(&quot;Enter The number&quot;))
          rev = 0
          while x &gt; 0:
              temp = x % 10
              rev = (rev * 10 + temp)
              x = x // 10
          #print(rev)
  
          if x == rev:
              return True
          else:
              return False
  
  
      sol = Solution()
      a = sol.isPalindrome(x)
      print(a)
  </code></pre>