2022-11-13 10:39:28 -08:00

12 lines
266 B
Python

#!/usr/bin/env python3
import requests
from palindrome_mhartl.phrase import Phrase
URL = "https://cdn.learnenough.com/phrases.txt"
for line in requests.get(URL).text.splitlines():
if Phrase(line).ispalindrome():
print(f"palindrome detected: {line}")