Skip to content

Instantly share code, notes, and snippets.

@microprediction
Created March 9, 2020 00:54
Show Gist options
  • Save microprediction/0d593262ff8939b37e21e71dee12eea4 to your computer and use it in GitHub Desktop.
Save microprediction/0d593262ff8939b37e21e71dee12eea4 to your computer and use it in GitHub Desktop.
animals.py
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