Created
March 9, 2020 00:54
-
-
Save microprediction/0d593262ff8939b37e21e71dee12eea4 to your computer and use it in GitHub Desktop.
animals.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
ANIMALS = requests.get('https://gist.githubusercontent.com/atduskgreg/3cf8ef48cb0d29cf151bedad81553a54/raw/82f142562cf50b0f6fb8010f890b2f934093553e/animals.txt').text.split('\n') | |
def animals_of_len(k): | |
return [ a.lower() for a in ANIMALS if len(a)==k ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment