function#
- test_package.animals.function()[source]#
Prints what the animals name is and what sound it makes.
If the argument
sound
isn’t passed in, the default animal sound is used.Note
This is a note.
Warning
This is a warning.
- Parameters:
sound (
str
, optional) – The sound the animal makes (default isNone
).- Returns:
list
– A list.- Raises:
NotImplementedError – If no sound is set for the animal or passed in as a parameter.
Examples
>>> import datetime >>> datetime.datetime(2019, 8, 16, 22, 46, 37, 856437) datetime.datetime(2019, 8, 16, 22, 46, 37, 856437)
References