Question: Please use Python3 O Determine if a given string is palindrome -A Palindrome is a string which reads the same forward as backward, such as

Please use Python3
O Determine if a given string is palindrome -A Palindrome is a string which reads the same forward as backward, such as 'civic' and 'hannah'. Return 1 if the input is palindrome. Otherwise, return 0 -Function name should be 'checkPalindrome' -A lower-case string is given as input to the function. -Do not use reverse function The code below will print 0 and 1, respectively. def checkPalindrome(word): # write statement print(checkPalindrome('python')) print(checkPalindrome('hannah')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
