| Conditions | 7 |
| Total Lines | 11 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | def is_palindromic(text): |
||
| 18 | def longest_palindromic(text): |
||
| 19 | text_elements = set(text) |
||
| 20 | palindromic = text[0] |
||
| 21 | for i in text_elements: |
||
| 22 | for j in yield_substring(text, i): |
||
| 23 | if is_palindromic(j): |
||
| 24 | if len(j) == len(palindromic) and text.find(j) < text.find(palindromic): |
||
| 25 | palindromic = j |
||
| 26 | elif len(j) > len(palindromic): |
||
| 27 | palindromic = j |
||
| 28 | return palindromic |
||
| 29 | |||
| 35 |