Using *args in Python3 to define a function that takes a variable number of arguments (or none at all)
Mini-learns with Python
3 min readDec 27, 2020
The other day I ran into a problem asking me to provide one kind of output if an argument was given, and another if no argument was given.
For example — given a book, return the message: