(a)
| 1 | def palindrome(a): |
| 2 | mid = (len(a) - 1) // 2 |
| 3 | start = 0 |
| 4 | last = len(a) - 1 |
| 5 | flag = 0 |
| 6 | |
| 7 | while start < mid: |
| 8 | if a[start] == a[last]: |
| 9 | start += 1 |
| 10 | last -= 1 |
| 11 | |
| 12 | else: |
| 13 | flag = 1 |
| 14 | break |
| 15 | |
| 16 | if flag == 0: |
| 17 | print("The entered string is palindrome") |
| 18 | else: |
| 19 | print("The entered string is not palindrome") |
| 20 | |
| 21 | |
| 22 | def symmetry(a): |
no outgoing calls
no test coverage detected