Skip to content

Instantly share code, notes, and snippets.

@pbeaudequin
Created November 14, 2020 08:27
Show Gist options
  • Save pbeaudequin/01dc9eeb4d6f1527fb232741d1f990ec to your computer and use it in GitHub Desktop.
Save pbeaudequin/01dc9eeb4d6f1527fb232741d1f990ec to your computer and use it in GitHub Desktop.
import cowsay
from random import choice
ltype=[i for i in dir(cowsay) if not i.startswith('__') and i not in ['about','char_names','chars','module']]
l='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
l='ABCDEFILMNOPRSTUV'
eval(f'cowsay.{choice(ltype)}("{choice(l)}")')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment