Question: In python3 anything but string indexing, lists, list indexing, or recursion no imports, but you can make as many helper functions as needed camelCase please


In python3
anything but string indexing, lists, list indexing, or recursion
no imports, but you can make as many helper functions as needed
camelCase please
isPalindromicNumber(n) [10 pts] Write the function is PalindromicNumber(n) that takes a non-negative int n and returns True if that number is palindromic and False otherwise. A palindromic number is the same forwards as backwards. For example, these numbers are palindromic: 0, 1,99, 12321, 123321, and these numbers are not: 1211, 112, 10010. def testIsPalindromicNumber(): print('Testing isPalindromicNumber()...', end='') assert isPalindromicNumber(0) == True assert ispalindromicNumber (4) == True assert isPalindromicNumber (10) == False assert isPalindromicNumber(101) == True assert isPalindromicNumber(1001) == True assert isPalindromicNumber(10010) False print('Passed.')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
