Skip to content

Commit 827e134

Browse files
committed
make the function dynamic to print an the image of the selected animal
1 parent 7d49667 commit 827e134

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

implement-cowsay/cow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
message = " ".join(args.message)
1616
animal = args.animal or "cow"
1717

18-
18+
animal_says = getattr(cowsay, animal)

0 commit comments

Comments
 (0)