Created
November 14, 2020 08:27
-
-
Save pbeaudequin/01dc9eeb4d6f1527fb232741d1f990ec to your computer and use it in GitHub Desktop.
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 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