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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!