(strng)
| 31 | # 3.. TO FIND IF THE GIVEN STRING IS PALINDROME OR NOT |
| 32 | |
| 33 | def isPalindrome(strng): |
| 34 | if len(strng)==0: |
| 35 | return True |
| 36 | if strng[0]==strng[-1]: |
| 37 | return isPalindrome(strng[1:-1]) |
| 38 | |
| 39 | else: |
| 40 | return False |
| 41 | print((isPalindrome('naman'))) |
| 42 | |
| 43 |
no outgoing calls
no test coverage detected