| import cowsay
|
|
|
| for i in dir(cowsay):
|
| print(i)
|
|
|
| x=input("what do you want?")
|
|
|
| #for example the user input trex from the dir list
|
|
|
| output = cowsay.x
|
|
|
| while(True):
|
| output("Jambu")
|
|
|
| #How to tell the program to replace x with trex to get the cowsay to print the trex ascii image
|